From b1cf1031cca68c216b663cbcdebfa90bdef83800 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 git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@17602 b9a71923-0436-4b27-9f14-aed3839534dd --- 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)