mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-07 01:06:48 +02:00
[ticket/15324] Add more core and template events
PHPBB3-15324
This commit is contained in:
@@ -1579,7 +1579,7 @@ switch ($mode)
|
||||
$pagination->generate_template_pagination($pagination_url, 'pagination', 'start', $total_users, $config['topics_per_page'], $start);
|
||||
|
||||
// Generate page
|
||||
$template->assign_vars(array(
|
||||
$template_vars = array(
|
||||
'TOTAL_USERS' => $user->lang('LIST_USERS', (int) $total_users),
|
||||
|
||||
'PROFILE_IMG' => $user->img('icon_user_profile', $user->lang['PROFILE']),
|
||||
@@ -1604,8 +1604,22 @@ switch ($mode)
|
||||
'S_LEADERS_SET' => $leaders_set,
|
||||
'S_MODE_SELECT' => $s_sort_key,
|
||||
'S_ORDER_SELECT' => $s_sort_dir,
|
||||
'S_MODE_ACTION' => $pagination_url)
|
||||
'S_MODE_ACTION' => $pagination_url,
|
||||
);
|
||||
|
||||
/**
|
||||
* Modify memberlist page template vars
|
||||
*
|
||||
* @event core.memberlist_modify_template_vars
|
||||
* @var array params Array containing URL parameters
|
||||
* @var string sort_url Sorting URL base
|
||||
* @var array template_vars Array containing template vars
|
||||
* @since 3.2.2-RC1
|
||||
*/
|
||||
$vars = array('params', 'sort_url', 'template_vars');
|
||||
extract($phpbb_dispatcher->trigger_event('core.memberlist_modify_template_vars', compact($vars)));
|
||||
|
||||
$template->assign_vars($template_vars);
|
||||
}
|
||||
|
||||
// Output the page
|
||||
|
Reference in New Issue
Block a user