From 9dff6c5a8c952cb35c05f38a1c0aec47e9d30647 Mon Sep 17 00:00:00 2001 From: fGaillard Date: Mon, 12 Dec 2011 13:41:38 +0000 Subject: [PATCH] [-] MO : #PSCFI-4389 : Block Advertising hookHeader added git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11132 b9a71923-0436-4b27-9f14-aed3839534dd --- modules/blockadvertising/blockadvertising.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/modules/blockadvertising/blockadvertising.php b/modules/blockadvertising/blockadvertising.php index 81fc4026b..125c06e9e 100644 --- a/modules/blockadvertising/blockadvertising.php +++ b/modules/blockadvertising/blockadvertising.php @@ -224,9 +224,8 @@ class BlockAdvertising extends Module * @param array $params Parameters * @return string Content */ - function hookRightColumn($params) + public function hookRightColumn($params) { - $this->context->controller->addCSS($this->_path.'blockadvertising.css', 'all'); $this->context->smarty->assign('image', $this->context->link->protocol_content.$this->adv_img); $this->context->smarty->assign('adv_link', $this->adv_link); $this->context->smarty->assign('adv_title', $this->adv_title); @@ -234,11 +233,16 @@ class BlockAdvertising extends Module return $this->display(__FILE__, 'blockadvertising.tpl'); } - function hookLeftColumn($params) + public function hookLeftColumn($params) { return $this->hookRightColumn($params); } + public function hookHeader($params) + { + $this->context->controller->addCSS($this->_path.'blockadvertising.css', 'all'); + } + }