[-] MO : blocktopmenu - Correct multiple hookTop menu links duplicates #PSCSX-2057

This commit is contained in:
Thibaud Chauviere
2014-05-12 11:21:16 +02:00
parent 1bbf09460f
commit 5c2619f3cc
+2 -1
View File
@@ -583,7 +583,8 @@ class Blocktopmenu extends Module
$this->page_name = Dispatcher::getInstance()->getController(); $this->page_name = Dispatcher::getInstance()->getController();
if (!$this->isCached('blocktopmenu.tpl', $this->getCacheId())) if (!$this->isCached('blocktopmenu.tpl', $this->getCacheId()))
{ {
$this->makeMenu(); if (Tools::isEmpty($this->_menu))
$this->makeMenu();
$this->smarty->assign('MENU_SEARCH', Configuration::get('MOD_BLOCKTOPMENU_SEARCH')); $this->smarty->assign('MENU_SEARCH', Configuration::get('MOD_BLOCKTOPMENU_SEARCH'));
$this->smarty->assign('MENU', $this->_menu); $this->smarty->assign('MENU', $this->_menu);
$this->smarty->assign('this_path', $this->_path); $this->smarty->assign('this_path', $this->_path);