From ab2072983b4f35c0495f920409f0f5bf5c75ee27 Mon Sep 17 00:00:00 2001 From: Cash Costello Date: Sat, 16 Jun 2012 18:11:57 -0400 Subject: Fixes #3684 prevent pagesetup, system event from firing during the init, system event --- engine/start.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'engine/start.php') diff --git a/engine/start.php b/engine/start.php index 506e27380..5f4bded45 100644 --- a/engine/start.php +++ b/engine/start.php @@ -49,6 +49,7 @@ global $CONFIG; if (!isset($CONFIG)) { $CONFIG = new stdClass; } +$CONFIG->boot_complete = false; $lib_dir = dirname(__FILE__) . '/lib/'; @@ -105,5 +106,7 @@ elgg_trigger_event('plugins_boot', 'system'); // Complete the boot process for both engine and plugins elgg_trigger_event('init', 'system'); +$CONFIG->boot_complete = true; + // System loaded and ready elgg_trigger_event('ready', 'system'); -- cgit v1.2.3