mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[feature/events] Add core.memberlist_profile_data ledge.
This is needed by the avatars on memberlist modification. PHPBB3-9550
This commit is contained in:
parent
4da001625d
commit
9877ab1ff3
1 changed files with 8 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Reference in a new issue