aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2014-07-27 19:41:56 +0200
committerJoas Schilling <nickvergessen@gmx.de>2014-07-27 19:41:56 +0200
commit64f2d778cd4f08061e968c3edd4dbac4cae92512 (patch)
treebacfec3235d6692706b386bec084373989409274
parenta775bb082c01b7adda70af974a0f7da3102a5592 (diff)
parent5dcf56c98d43c9eb206d0bb9bffca406576db399 (diff)
downloadforums-64f2d778cd4f08061e968c3edd4dbac4cae92512.tar
forums-64f2d778cd4f08061e968c3edd4dbac4cae92512.tar.gz
forums-64f2d778cd4f08061e968c3edd4dbac4cae92512.tar.bz2
forums-64f2d778cd4f08061e968c3edd4dbac4cae92512.tar.xz
forums-64f2d778cd4f08061e968c3edd4dbac4cae92512.zip
Merge branch 'ticket/forumhulp/12896' into develop-ascraeus
* ticket/forumhulp/12896: [ticket/12896] Add php event for admin notices
-rw-r--r--phpBB/includes/acp/acp_main.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/phpBB/includes/acp/acp_main.php b/phpBB/includes/acp/acp_main.php
index 0d0d49774c..2a28226d6c 100644
--- a/phpBB/includes/acp/acp_main.php
+++ b/phpBB/includes/acp/acp_main.php
@@ -26,7 +26,7 @@ class acp_main
function main($id, $mode)
{
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
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
$total_posts = $config['num_posts'];
$total_topics = $config['num_topics'];