diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-08-06 12:44:39 -0700 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-08-06 12:44:39 -0700 |
commit | c09e2ef7af5411f239ba7f1adb01be39b2950b84 (patch) | |
tree | 33c7bfb5c16b5cfc40b92704e23b1e932618628f /modules/gallery/helpers/module.php | |
parent | b826182b7a7b2d630b478d3e2bcf0628989a92d9 (diff) | |
parent | ad19e29c469295189a2d13772706e39e3bd3dfc7 (diff) |
Merge branch 'master' of git@github.com:bharat/gallery3 into bharat_branch
Diffstat (limited to 'modules/gallery/helpers/module.php')
-rw-r--r-- | modules/gallery/helpers/module.php | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/modules/gallery/helpers/module.php b/modules/gallery/helpers/module.php index 0d483206..03d538a9 100644 --- a/modules/gallery/helpers/module.php +++ b/modules/gallery/helpers/module.php @@ -274,11 +274,9 @@ class module_Core { array_shift($args); $function = str_replace(".", "_", $name); - foreach (self::$modules as $module) { - if (!$module->active) { - continue; - } - + // @todo: consider calling gallery_event first, since for things menus we need it to do some + // setup + foreach (self::$active as $module) { $class = "{$module->name}_event"; if (method_exists($class, $function)) { call_user_func_array(array($class, $function), $args); |