summaryrefslogtreecommitdiff
path: root/modules/gallery/helpers/module.php
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-08-19 05:14:05 -0700
committerTim Almdal <tnalmdal@shaw.ca>2009-08-19 05:14:05 -0700
commitbc42df35ee6cce419cbd9f514f245dcf8c70262b (patch)
treed1ad4c36130edf320368c5e08f79ebb950b6bcec /modules/gallery/helpers/module.php
parent2ac916783ad81f49185fa5c8514aefcb330a6128 (diff)
parent3b8323d5b4db4904aba9ea2f922140ab235dd681 (diff)
Merge branch 'master' of git://github.com/gallery/gallery3
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);