From ee9ace6be349327816cb98beef015aab21f95416 Mon Sep 17 00:00:00 2001 From: marcus Date: Wed, 24 Jun 2009 14:52:39 +0000 Subject: Closes #427: Original view name passed to plugin hook. git-svn-id: https://code.elgg.org/elgg/trunk@3352 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/elgglib.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'engine/lib/elgglib.php') 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; -- cgit v1.2.3