aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/views.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/lib/views.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/lib/views.php')
-rw-r--r--engine/lib/views.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/engine/lib/views.php b/engine/lib/views.php
index 1b013be6f..c98ad4e78 100644
--- a/engine/lib/views.php
+++ b/engine/lib/views.php
@@ -403,7 +403,7 @@ function elgg_view($view, $vars = array(), $bypass = false, $debug = false, $vie
$view_orig = $view;
// Trigger the pagesetup event
- if (!isset($CONFIG->pagesetupdone)) {
+ if (!isset($CONFIG->pagesetupdone) && $CONFIG->boot_complete) {
$CONFIG->pagesetupdone = true;
elgg_trigger_event('pagesetup', 'system');
}