// Normalize

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@12746 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
rMalie
2012-01-27 10:28:56 +00:00
parent b50321d328
commit d514b6dc9b
15 changed files with 223 additions and 231 deletions
+3 -3
View File
@@ -46,7 +46,7 @@ class BlockCurrencies extends Module
public function install()
{
return (parent::install() AND $this->registerHook('top') AND $this->registerHook('header'));
return parent::install() && $this->registerHook('top') && $this->registerHook('header');
}
/**
@@ -58,7 +58,7 @@ class BlockCurrencies extends Module
public function hookTop($params)
{
if (Configuration::get('PS_CATALOG_MODE'))
return ;
return;
if (!count(Currency::getCurrencies()))
return '';
@@ -69,7 +69,7 @@ class BlockCurrencies extends Module
public function hookHeader($params)
{
if (Configuration::get('PS_CATALOG_MODE'))
return ;
return;
$this->context->controller->addCSS(($this->_path).'blockcurrencies.css', 'all');
}
}