// Hook modules exceptions now works with new dispatcher

This commit is contained in:
rMalie committed 2011-07-11 15:16:16 +00:00
1 parent 139bb84f87
commit 502942002d
3 files changed
+68 -24

No files matched your search

+2 -3
View File
@@ -783,9 +783,8 @@ abstract class ModuleCore
continue;
$exceptions = $moduleInstance->getExceptions($array['id_hook']);
foreach ($exceptions AS $exception)
if (strstr(basename($_SERVER['PHP_SELF']).'?'.$_SERVER['QUERY_STRING'], $exception))
continue 2;
if (in_array(Dispatcher::$controller, $exceptions))
continue;
if (is_callable(array($moduleInstance, 'hook'.$hook_name)))
{