[*] MO : updated module blocknewsletter and module blockcms for mobile theme

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@13653 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
mBertholino
2012-02-28 08:54:00 +00:00
parent b5f9999d32
commit 725cce9e7c
2 changed files with 5 additions and 5 deletions
+4 -4
View File
@@ -672,7 +672,7 @@ class BlockCms extends Module
return $this->display(__FILE__, 'blockcms.tpl'); return $this->display(__FILE__, 'blockcms.tpl');
} }
private function _prepareHook($params) private function _prepareHook()
{ {
$block_activation = Configuration::get('FOOTER_BLOCK_ACTIVATION'); $block_activation = Configuration::get('FOOTER_BLOCK_ACTIVATION');
@@ -714,14 +714,14 @@ class BlockCms extends Module
public function hookFooter() public function hookFooter()
{ {
if (!$this->_prepareHook($params)) if (!$this->_prepareHook())
return ; return ;
return $this->display(__FILE__, 'blockcms.tpl'); return $this->display(__FILE__, 'blockcms.tpl');
} }
public function hookDisplayMobileFooterCms($params) public function hookDisplayMobileFooterCms()
{ {
if (!$this->_prepareHook($params)) if (!$this->_prepareHook())
return ; return ;
return $this->display(__FILE__, 'blockmobilecms.tpl'); return $this->display(__FILE__, 'blockmobilecms.tpl');
} }
+1 -1
View File
@@ -498,7 +498,7 @@ class Blocknewsletter extends Module
$this->context->controller->addCSS($this->_path.'blocknewsletter.css', 'all'); $this->context->controller->addCSS($this->_path.'blocknewsletter.css', 'all');
} }
public function hookDisplayMobileIndex() public function hookDisplayMobileIndex($params)
{ {
$this->_prepareHook($params); $this->_prepareHook($params);
return $this->display(__FILE__, 'blockmobilenewsletter.tpl'); return $this->display(__FILE__, 'blockmobilenewsletter.tpl');