// PrestaShop normalisation

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@13868 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
nPellicari
2012-03-06 09:09:47 +00:00
parent c8f09a7148
commit 7f0df4f1c7
2 changed files with 15 additions and 15 deletions
+4 -4
View File
@@ -104,7 +104,7 @@ class ContextCore
* @var boolean|string touch pad device of the customer
*/
protected $touchpad_device;
public function getMobileDevice()
{
if (is_null($this->mobile_device))
@@ -117,10 +117,10 @@ class ContextCore
return $this->mobile_device;
}
protected function checkMobileContext()
{
return file_exists(_PS_THEME_MOBILE_DIR_)
return file_exists(_PS_THEME_MOBILE_DIR_)
&& Configuration::get('PS_ALLOW_MOBILE_DEVICE')
&& isset($_SERVER['HTTP_USER_AGENT']);
}
@@ -146,7 +146,7 @@ class ContextCore
}
return $this->touchpad_device;
}
/**
* Get a singleton context
*