diff --git a/blocktopmenu.php b/blocktopmenu.php index a8e970f..c8d9de5 100644 --- a/blocktopmenu.php +++ b/blocktopmenu.php @@ -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;