From 8df3d290d3b5217af72df732a2b4ac9b1fe15bb9 Mon Sep 17 00:00:00 2001 From: dMetzger Date: Fri, 28 Sep 2012 08:20:58 +0000 Subject: [PATCH] // Fixed homefeatured hook after update --- modules/homefeatured/homefeatured.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/modules/homefeatured/homefeatured.php b/modules/homefeatured/homefeatured.php index fc511ea53..d5649e7cd 100644 --- a/modules/homefeatured/homefeatured.php +++ b/modules/homefeatured/homefeatured.php @@ -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)