mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00:00
[feature/php-events] Do not override the data parameter, so data is available
PHPBB3-9550
This commit is contained in:
parent
758fb67a7d
commit
4745d4ec6c
1 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue