// Context part 26

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@7804 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
tDidierjean
2011-07-28 16:37:50 +00:00
parent 72de3384a7
commit d80c7b5ba8
18 changed files with 101 additions and 115 deletions
+1 -3
View File
@@ -178,8 +178,6 @@ class CarrierCompare extends Module
*/
private function isModuleAvailable()
{
global $cookie;
$fileName = basename($_SERVER['SCRIPT_FILENAME']);
/**
* This module is only available on standard order process because
@@ -191,7 +189,7 @@ class CarrierCompare extends Module
* If visitor is logged, the module isn't available on Front office,
* we use the account informations for carrier selection and taxes.
*/
if ($cookie->id_customer)
if (Context::getContext()->customer->id)
return false;
return true;
}