From 060810841b9e5ddde50a722076cb51219b5b84f9 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Fri, 29 Nov 2002 05:53:40 +0000 Subject: - Patch by Jeremy to fix a module loading bug: - module.inc: + added call to _init for all modules - statistics.module: + added statistics_init() + moved all global actions into statistics_init() --- includes/module.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'includes') diff --git a/includes/module.inc b/includes/module.inc index ba93cd45b..545c7d2cc 100644 --- a/includes/module.inc +++ b/includes/module.inc @@ -8,6 +8,7 @@ function module_init() { require_once "modules/system.module"; require_once "modules/watchdog.module"; module_list(); + module_invoke_all("init"); } // apply function $function to every known module: @@ -70,4 +71,4 @@ function module_hook($name, $hook) { return function_exists($name ."_". $hook); } -?> \ No newline at end of file +?> -- cgit v1.2.3