mirror of
https://github.com/phpbb/phpbb.git
synced 2025-04-05 16:33:34 +02:00
Merge pull request #4670 from senky/ticket/13608
[ticket/13608] Add core.ucp_restore_permissions event * github.com:phpbb/phpbb: [ticket/13608] Add core.ucp_restore_permissions event
This commit is contained in:
commit
ff22d54eae
@ -273,6 +273,18 @@ switch ($mode)
|
||||
add_log('admin', 'LOG_ACL_RESTORE_PERMISSIONS', $username);
|
||||
|
||||
$message = $user->lang['PERMISSIONS_RESTORED'] . '<br /><br />' . sprintf($user->lang['RETURN_INDEX'], '<a href="' . append_sid("{$phpbb_root_path}index.$phpEx") . '">', '</a>');
|
||||
|
||||
/**
|
||||
* Event to run code after permissions are restored
|
||||
*
|
||||
* @event core.ucp_restore_permissions
|
||||
* @var string username User name
|
||||
* @var string message Success message
|
||||
* @since 3.1.11-RC1
|
||||
*/
|
||||
$vars = array('username', 'message');
|
||||
extract($phpbb_dispatcher->trigger_event('core.ucp_restore_permissions', compact($vars)));
|
||||
|
||||
trigger_error($message);
|
||||
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user