// Improvement when detect mobile

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@17223 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
lLefevre
2012-09-07 08:17:15 +00:00
parent 79aa52f4a2
commit bc39b930b0
+2 -1
View File
@@ -110,7 +110,8 @@ class ContextCore
public function __construct() public function __construct()
{ {
$this->mobile_detect = new Mobile_Detect(); if ((bool)Configuration::get('PS_ALLOW_MOBILE_DEVICE'))
$this->mobile_detect = new Mobile_Detect();
} }
public function getMobileDevice() public function getMobileDevice()