[-] MO : #PSCFV-3049 - Fix Bug with module block search
// Removing code duplication
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user