// add clear cache

This commit is contained in:
sfroment42
2014-09-24 14:58:33 +02:00
parent 045e4083c3
commit 2f5f6159ff
+4
View File
@@ -86,6 +86,8 @@ class Blocktopmenu extends Module
!$this->registerHook('actionShopDataDuplication'))
return false;
$this->clearMenuCache();
if ($delete_params)
if (!$this->installDb() || !Configuration::updateGlobalValue('MOD_BLOCKTOPMENU_ITEMS', 'CAT3,CAT26') || !Configuration::updateGlobalValue('MOD_BLOCKTOPMENU_SEARCH', '1'))
return false;
@@ -118,6 +120,8 @@ class Blocktopmenu extends Module
if (!parent::uninstall())
return false;
$this->clearMenuCache();
if ($delete_params)
if (!$this->uninstallDB() || !Configuration::deleteByName('MOD_BLOCKTOPMENU_ITEMS') || !Configuration::deleteByName('MOD_BLOCKTOPMENU_SEARCH'))
return false;