aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2011-09-10 20:57:10 -0400
committerCash Costello <cash.costello@gmail.com>2011-09-10 20:57:10 -0400
commit03a14b636d9787c3fdd90301433fc51721d541f5 (patch)
tree4a9263b5a4121fed8065e227db8996f4e01cf8e3
parent97c04cab096fb5630a00c69696d4a3864358133d (diff)
downloadelgg-03a14b636d9787c3fdd90301433fc51721d541f5.tar.gz
elgg-03a14b636d9787c3fdd90301433fc51721d541f5.tar.bz2
Fixes #3688 setting the page setup variable in $CONFIG before trigger the event to prevent a stack overflow
-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 16aa147e4..54fd52c70 100644
--- a/engine/lib/views.php
+++ b/engine/lib/views.php
@@ -369,8 +369,8 @@ function elgg_view($view, $vars = array(), $bypass = false, $debug = false, $vie
// Trigger the pagesetup event
if (!isset($CONFIG->pagesetupdone)) {
- elgg_trigger_event('pagesetup', 'system');
$CONFIG->pagesetupdone = true;
+ elgg_trigger_event('pagesetup', 'system');
}
if (!is_array($usercache)) {