aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engine/lib/elgglib.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/engine/lib/elgglib.php b/engine/lib/elgglib.php
index d591ca00b..8fc1b3da9 100644
--- a/engine/lib/elgglib.php
+++ b/engine/lib/elgglib.php
@@ -159,6 +159,12 @@
global $CONFIG;
static $usercache;
+ // Trigger the pagesetup event
+ if (!isset($CONFIG->pagesetupdone)) {
+ trigger_elgg_event('pagesetup','system');
+ $CONFIG->pagesetupdone = true;
+ }
+
if (!is_array($usercache)) {
$usercache = array();
}
@@ -770,6 +776,7 @@
*/
function page_draw($title, $body, $sidebar = "") {
+ // Draw the page
echo elgg_view('pageshells/pageshell', array(
'title' => $title,
'body' => $body,