// Improvement when detect mobile

This commit is contained in:
lLefevre committed 2012-09-07 08:17:15 +00:00
1 parent 86e334a06e
commit 872fd757b4
1 file changed
+2 -1
+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()