aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engine/lib/elgglib.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/engine/lib/elgglib.php b/engine/lib/elgglib.php
index 7822919c5..ac6522c61 100644
--- a/engine/lib/elgglib.php
+++ b/engine/lib/elgglib.php
@@ -173,6 +173,8 @@
global $CONFIG;
static $usercache;
+ $view_orig = $view;
+
// Trigger the pagesetup event
if (!isset($CONFIG->pagesetupdone)) {
trigger_elgg_event('pagesetup','system');
@@ -263,7 +265,7 @@
$content = ob_get_clean();
// Plugin hook
- $content = trigger_plugin_hook('display','view',array('view' => $view),$content);
+ $content = trigger_plugin_hook('display','view',array('view' => $view_orig),$content);
// Return $content
return $content;