mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-24 02:48:56 +00:00
[feature/events] Correct core.acp_users_overview event
The event still used the "old" method. PHPBB3-9550
This commit is contained in:
parent
e21861b488
commit
b04141b14f
1 changed files with 3 additions and 4 deletions
|
@ -30,8 +30,9 @@ class acp_users
|
|||
|
||||
function main($id, $mode)
|
||||
{
|
||||
global $config, $db, $user, $auth, $template, $cache, $phpbb_dispatcher;
|
||||
global $config, $db, $user, $auth, $template, $cache;
|
||||
global $phpbb_root_path, $phpbb_admin_path, $phpEx, $table_prefix, $file_uploads;
|
||||
global $phpbb_dispatcher;
|
||||
|
||||
$user->add_lang(array('posting', 'ucp', 'acp/users'));
|
||||
$this->tpl_name = 'acp_users';
|
||||
|
@ -1040,9 +1041,7 @@ class acp_users
|
|||
));
|
||||
|
||||
$vars = array('data', 'check_ary', 'sql_ary', 'user_row', 'quick_tool_ary');
|
||||
$event = new phpbb_event_data(compact($vars));
|
||||
$phpbb_dispatcher->dispatch('core.acp_users_overview', $event);
|
||||
extract($event->get_data_filtered($vars));
|
||||
extract($phpbb_dispatcher->trigger_event('core.acp_users_overview', compact($vars)));
|
||||
|
||||
break;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue