// Improvement when detect mobile
This commit is contained in:
1 parent
864fc3d405
commit
84b9fbaf1e
1 file changed
+2
-1
+2
-1
@@ -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()
|
||||||
|
|||||||
Reference in new issue
Block a user