1
0
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:
Tristan Darricau 2017-04-19 23:08:15 +02:00
commit ff22d54eae
No known key found for this signature in database
GPG Key ID: 817043C2E29DB881

View File

@ -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;