mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-08 01:36:57 +02:00
[feature/events] Change to use the new method of adding events
PHPBB3-9550
This commit is contained in:
committed by
Joas Schilling
parent
ba63df2dce
commit
8af7d225ef
@@ -329,9 +329,7 @@ if (!$auth->acl_get('u_sig'))
|
||||
}
|
||||
|
||||
$vars = array('module');
|
||||
$event = new phpbb_event_data(compact($vars));
|
||||
$phpbb_dispatcher->dispatch('core.ucp_modules', $event);
|
||||
extract($event->get_data_filtered($vars));
|
||||
extract($phpbb_dispatcher->trigger_event('core.ucp_modules', compact($vars), $vars));
|
||||
|
||||
// Select the active module
|
||||
$module->set_active($id, $mode);
|
||||
|
Reference in New Issue
Block a user