// Small fix
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@17241 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
1 parent
8bc079d756
commit
a0203b82b1
1 file changed
+1
@@ -145,6 +145,7 @@ class ContextCore
|
|||||||
protected function checkMobileContext()
|
protected function checkMobileContext()
|
||||||
{
|
{
|
||||||
return isset($_SERVER['HTTP_USER_AGENT'])
|
return isset($_SERVER['HTTP_USER_AGENT'])
|
||||||
|
&& isset(Context::getContext()->cookie)
|
||||||
&& (bool)Configuration::get('PS_ALLOW_MOBILE_DEVICE')
|
&& (bool)Configuration::get('PS_ALLOW_MOBILE_DEVICE')
|
||||||
&& @filemtime(_PS_THEME_MOBILE_DIR_)
|
&& @filemtime(_PS_THEME_MOBILE_DIR_)
|
||||||
&& !Context::getContext()->cookie->no_mobile;
|
&& !Context::getContext()->cookie->no_mobile;
|
||||||
|
|||||||
Reference in new issue
Block a user