// Fixed homefeatured hook after update

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@17602 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
dMetzger
2012-09-28 08:20:58 +00:00
parent a91e7c4264
commit b1cf1031cc
+7 -2
View File
@@ -49,7 +49,7 @@ class HomeFeatured extends Module
function install()
{
if (!Configuration::updateValue('HOME_FEATURED_NBR', 8) || !parent::install() || !$this->registerHook('displayHome') || !$this->registerHook('displayHeader'))
if (!Configuration::updateValue('HOME_FEATURED_NBR', 8) || !parent::install() || !$this->registerHook('displayHome') || !$this->registerHook('header'))
return false;
return true;
}
@@ -92,7 +92,12 @@ class HomeFeatured extends Module
public function hookDisplayHeader($params)
{
$this->context->controller->addCss($this->_path.'homefeatured.css');
$this->hookHeader($params);
}
public function hookHeader($params)
{
$this->context->controller->addCss($this->_path.'homefeatured.css', 'all');
}
public function hookDisplayHome($params)