[feature/events] Add core.memberlist_profile_data ledge.

This is needed by the avatars on memberlist modification.

PHPBB3-9550
This commit is contained in:
Oleg Pudeyev 2012-02-04 07:12:00 -05:00 committed by Joas Schilling
parent 4da001625d
commit 9877ab1ff3

View file

@ -1693,7 +1693,7 @@ function show_profile($data, $user_notes_enabled = false, $warn_user_enabled = f
} }
// Dump it out to the template // Dump it out to the template
return array( $data = array(
'AGE' => $age, 'AGE' => $age,
'RANK_TITLE' => $rank_title, 'RANK_TITLE' => $rank_title,
'JOINED' => $user->format_date($data['user_regdate']), 'JOINED' => $user->format_date($data['user_regdate']),
@ -1741,6 +1741,13 @@ function show_profile($data, $user_notes_enabled = false, $warn_user_enabled = f
'L_VIEWING_PROFILE' => sprintf($user->lang['VIEWING_PROFILE'], $username), 'L_VIEWING_PROFILE' => sprintf($user->lang['VIEWING_PROFILE'], $username),
); );
$vars = array('data');
$event = new phpbb_event_data(compact($vars));
$phpbb_dispatcher->dispatch('core.memberlist_profile_data', $event);
extract($event->get_data_filtered($vars));
return $data;
} }
function _sort_last_active($first, $second) function _sort_last_active($first, $second)