[-] MO : #PSCFV-3049 - Fix Bug with module block search

// Removing code duplication

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@16329 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
mDeflotte
2012-07-11 09:58:10 +00:00
parent b08fb5ab7f
commit 73728fe9b4
5 changed files with 102 additions and 195 deletions
+4 -1
View File
@@ -34,7 +34,7 @@ class BlockSearch extends Module
{
$this->name = 'blocksearch';
$this->tab = 'search_filter';
$this->version = 1.1;
$this->version = 1.2;
$this->author = 'PrestaShop';
$this->need_instance = 0;
@@ -67,12 +67,14 @@ class BlockSearch extends Module
public function hookRightColumn($params)
{
$this->calculHookCommon($params);
$this->smarty->assign('blocksearch_type', 'block');
return $this->display(__FILE__, 'blocksearch.tpl');
}
public function hookTop($params)
{
$this->calculHookCommon($params);
$this->smarty->assign('blocksearch_type', 'top');
return $this->display(__FILE__, 'blocksearch-top.tpl');
}
@@ -89,6 +91,7 @@ class BlockSearch extends Module
'search_ssl' => Tools::usingSecureMode(),
'ajaxsearch' => Configuration::get('PS_SEARCH_AJAX'),
'instantsearch' => Configuration::get('PS_INSTANT_SEARCH'),
'self' => dirname(__FILE__),
));
return true;