diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2012-06-20 16:01:51 +0200 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2012-08-01 10:18:51 +0200 |
commit | 4745d4ec6c5c25757818bf528f1019da4ebd2534 (patch) | |
tree | 0ad5e6e41ba13359a34645423e7558069d15a38f /phpBB/memberlist.php | |
parent | 758fb67a7dc3bcc39ec0284c7045b2668f049408 (diff) | |
download | forums-4745d4ec6c5c25757818bf528f1019da4ebd2534.tar forums-4745d4ec6c5c25757818bf528f1019da4ebd2534.tar.gz forums-4745d4ec6c5c25757818bf528f1019da4ebd2534.tar.bz2 forums-4745d4ec6c5c25757818bf528f1019da4ebd2534.tar.xz forums-4745d4ec6c5c25757818bf528f1019da4ebd2534.zip |
[feature/php-events] Do not override the data parameter, so data is available
PHPBB3-9550
Diffstat (limited to 'phpBB/memberlist.php')
-rw-r--r-- | phpBB/memberlist.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/phpBB/memberlist.php b/phpBB/memberlist.php index a417eaac1a..06c55e7956 100644 --- a/phpBB/memberlist.php +++ b/phpBB/memberlist.php @@ -1696,7 +1696,7 @@ function show_profile($data, $user_notes_enabled = false, $warn_user_enabled = f } // Dump it out to the template - $data = array( + $template_data = array( 'AGE' => $age, 'RANK_TITLE' => $rank_title, 'JOINED' => $user->format_date($data['user_regdate']), @@ -1745,10 +1745,10 @@ function show_profile($data, $user_notes_enabled = false, $warn_user_enabled = f 'L_VIEWING_PROFILE' => sprintf($user->lang['VIEWING_PROFILE'], $username), ); - $vars = array('data'); + $vars = array('data', 'template_data'); extract($phpbb_dispatcher->trigger_event('core.memberlist_profile_data', compact($vars))); - return $data; + return $template_data; } function _sort_last_active($first, $second) |