From 28665cc8c0977d57be1d792052e84f0a1fe6b66a Mon Sep 17 00:00:00 2001 From: rMalie Date: Wed, 9 May 2012 16:04:39 +0000 Subject: [PATCH] // Norm on blockstore git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@15131 b9a71923-0436-4b27-9f14-aed3839534dd --- modules/blockstore/blockstore.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/blockstore/blockstore.php b/modules/blockstore/blockstore.php index 16dad3e49..8bee87b1c 100644 --- a/modules/blockstore/blockstore.php +++ b/modules/blockstore/blockstore.php @@ -30,7 +30,7 @@ if (!defined('_PS_VERSION_')) class BlockStore extends Module { - function __construct() + public function __construct() { $this->name = 'blockstore'; $this->tab = 'front_office_features'; @@ -44,10 +44,10 @@ class BlockStore extends Module $this->description = $this->l('Displays a block with a link to the store locator.'); } - function install() + public function install() { Configuration::updateValue('BLOCKSTORE_IMG', 'store.jpg'); - return (parent::install() AND $this->registerHook('rightColumn') AND $this->registerHook('header')); + return parent::install() && $this->registerHook('rightColumn') && $this->registerHook('header'); } public function uninstall() @@ -56,12 +56,12 @@ class BlockStore extends Module return parent::uninstall(); } - function hookLeftColumn($params) + public function hookLeftColumn($params) { return $this->hookRightColumn($params); } - function hookRightColumn($params) + public function hookRightColumn($params) { $this->smarty->assign('store_img', Configuration::get('BLOCKSTORE_IMG')); $sql = 'SELECT COUNT(*) @@ -73,7 +73,7 @@ class BlockStore extends Module return $this->display(__FILE__, 'blockstore.tpl'); } - function hookHeader($params) + public function hookHeader($params) { $this->context->controller->addCSS($this->_path.'blockstore.css', 'all'); }