// Fix bugs with category positions

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@17293 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
rGaillard
2012-09-11 16:33:21 +00:00
parent 40e069c117
commit aea7340012
4 changed files with 24 additions and 17 deletions
+7 -1
View File
@@ -78,6 +78,7 @@ class Blocktopmenu extends Module
!$this->registerHook('actionObjectManufacturerDeleteAfter') ||
!$this->registerHook('actionObjectProductUpdateAfter') ||
!$this->registerHook('actionObjectProductDeleteAfter') ||
!$this->registerHook('categoryUpdate') ||
!$this->installDB())
return false;
return true;
@@ -805,7 +806,7 @@ class Blocktopmenu extends Module
$this->clearMenuCache();
}
public function hookActionObjectCmsUpdateUpdate($params)
public function hookActionObjectCmsUpdateAfter($params)
{
$this->clearMenuCache();
}
@@ -845,6 +846,11 @@ class Blocktopmenu extends Module
$this->clearMenuCache();
}
public function hookCategoryUpdate($params)
{
$this->clearMenuCache();
}
private function clearMenuCache()
{
$this->_clearCache('blocktopmenu.tpl');