This commit is contained in:
Laurent Destailleur 2013-04-07 21:09:57 +02:00
parent 64a9689473
commit b678183ff2

View File

@ -138,6 +138,8 @@ class HookManager
{ {
foreach($modules as $module => $actionclassinstance) foreach($modules as $module => $actionclassinstance)
{ {
//var_dump(get_class($actionclassinstance).'->'.$method);
// jump to next class if method does not exists // jump to next class if method does not exists
if (! method_exists($actionclassinstance,$method)) continue; if (! method_exists($actionclassinstance,$method)) continue;
// test to avoid to run twice a hook, when a module implements several active contexts // test to avoid to run twice a hook, when a module implements several active contexts