mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-05 23:25:30 +02:00
[ticket/12896] Add php event for admin notices
PHPBB3-12896
This commit is contained in:
parent
9e1802396f
commit
5dcf56c98d
@ -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'];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user