summaryrefslogtreecommitdiff
path: root/modules/gallery/helpers/module.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-08-06 12:44:39 -0700
committerBharat Mediratta <bharat@menalto.com>2009-08-06 12:44:39 -0700
commitc09e2ef7af5411f239ba7f1adb01be39b2950b84 (patch)
tree33c7bfb5c16b5cfc40b92704e23b1e932618628f /modules/gallery/helpers/module.php
parentb826182b7a7b2d630b478d3e2bcf0628989a92d9 (diff)
parentad19e29c469295189a2d13772706e39e3bd3dfc7 (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.php8
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);