Merge branch 'ticket/forumhulp/12896' into develop-ascraeus

* ticket/forumhulp/12896:
  [ticket/12896] Add php event for admin notices
This commit is contained in:
Joas Schilling 2014-07-27 19:41:56 +02:00
commit 64f2d778cd

View file

@ -26,7 +26,7 @@ class acp_main
function main($id, $mode) function main($id, $mode)
{ {
global $config, $db, $cache, $user, $auth, $template, $request; global $config, $db, $cache, $user, $auth, $template, $request;
global $phpbb_root_path, $phpbb_admin_path, $phpEx, $phpbb_container; global $phpbb_root_path, $phpbb_admin_path, $phpEx, $phpbb_container, $phpbb_dispatcher;
// Show restore permissions notice // Show restore permissions notice
if ($user->data['user_perm_from'] && $auth->acl_get('a_switchperm')) if ($user->data['user_perm_from'] && $auth->acl_get('a_switchperm'))
@ -445,6 +445,14 @@ class acp_main
)); ));
} }
/**
* Notice admin
*
* @event core.acp_main_notice
* @since 3.1.0-RC3
*/
$phpbb_dispatcher->dispatch('core.acp_main_notice');
// Get forum statistics // Get forum statistics
$total_posts = $config['num_posts']; $total_posts = $config['num_posts'];
$total_topics = $config['num_topics']; $total_topics = $config['num_topics'];