aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/elgglib.php
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-06-24 14:52:39 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-06-24 14:52:39 +0000
commitee9ace6be349327816cb98beef015aab21f95416 (patch)
treec41cad10e2c7a82fcb956c9f686dd037e8ce1ac7 /engine/lib/elgglib.php
parent4df70c318e3d39d0ff6d1bf3afb826f52ac34625 (diff)
downloadelgg-ee9ace6be349327816cb98beef015aab21f95416.tar.gz
elgg-ee9ace6be349327816cb98beef015aab21f95416.tar.bz2
Closes #427: Original view name passed to plugin hook.
git-svn-id: https://code.elgg.org/elgg/trunk@3352 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/elgglib.php')
-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;