// Fixed homefeatured hook after update

This commit is contained in:
dMetzger
2012-09-28 08:20:58 +00:00
parent fa98806550
commit 82cf39aa1a
+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)