aboutsummaryrefslogtreecommitdiff
path: root/engine/start.php
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2012-06-16 18:11:57 -0400
committerCash Costello <cash.costello@gmail.com>2012-06-16 18:11:57 -0400
commitab2072983b4f35c0495f920409f0f5bf5c75ee27 (patch)
treea5799d4a0a98f52775a08a10bd6853c4d3076b77 /engine/start.php
parentb06fec41d7f0e4b998dc6753a3d4c50b16621000 (diff)
downloadelgg-ab2072983b4f35c0495f920409f0f5bf5c75ee27.tar.gz
elgg-ab2072983b4f35c0495f920409f0f5bf5c75ee27.tar.bz2
Fixes #3684 prevent pagesetup, system event from firing during the init, system event
Diffstat (limited to 'engine/start.php')
-rw-r--r--engine/start.php3
1 files changed, 3 insertions, 0 deletions
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');