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

// Removing code duplication
This commit is contained in:
mDeflotte
2012-07-11 09:58:10 +00:00
parent 1eb25bf2bd
commit b28757eead
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;