diff options
author | Marc Alexander <admin@m-a-styles.de> | 2017-02-21 21:00:46 +0100 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2017-02-21 21:10:35 +0100 |
commit | 896249f0e8ea2059ddcd16632c1d11b934c72f5b (patch) | |
tree | 2464910304e488345f81351b1942a48ef1ea3279 /phpBB/includes/acp | |
parent | 481a592b8dc04a09330bd302048e7a6f445121d8 (diff) | |
parent | 3e5e8fd0e3feb863bfb0d61b6c133216b100fdb8 (diff) | |
download | forums-896249f0e8ea2059ddcd16632c1d11b934c72f5b.tar forums-896249f0e8ea2059ddcd16632c1d11b934c72f5b.tar.gz forums-896249f0e8ea2059ddcd16632c1d11b934c72f5b.tar.bz2 forums-896249f0e8ea2059ddcd16632c1d11b934c72f5b.tar.xz forums-896249f0e8ea2059ddcd16632c1d11b934c72f5b.zip |
Merge pull request #4604 from rxu/ticket/13344
[ticket/13344] Add core event to acp/info/acp_logs.php
Diffstat (limited to 'phpBB/includes/acp')
-rw-r--r-- | phpBB/includes/acp/info/acp_logs.php | 27 |
1 files changed, 21 insertions, 6 deletions
diff --git a/phpBB/includes/acp/info/acp_logs.php b/phpBB/includes/acp/info/acp_logs.php index e9e6034cd4..3b2764c4dc 100644 --- a/phpBB/includes/acp/info/acp_logs.php +++ b/phpBB/includes/acp/info/acp_logs.php @@ -15,16 +15,31 @@ class acp_logs_info { function module() { + global $phpbb_dispatcher; + + $modes = array( + 'admin' => array('title' => 'ACP_ADMIN_LOGS', 'auth' => 'acl_a_viewlogs', 'cat' => array('ACP_FORUM_LOGS')), + 'mod' => array('title' => 'ACP_MOD_LOGS', 'auth' => 'acl_a_viewlogs', 'cat' => array('ACP_FORUM_LOGS')), + 'users' => array('title' => 'ACP_USERS_LOGS', 'auth' => 'acl_a_viewlogs', 'cat' => array('ACP_FORUM_LOGS')), + 'critical' => array('title' => 'ACP_CRITICAL_LOGS', 'auth' => 'acl_a_viewlogs', 'cat' => array('ACP_FORUM_LOGS')), + ); + + /** + * Event to add or modify ACP log modulemodes + * + * @event core.acp_logs_info_modify_modes + * @var array modes Array with modes info + * @since 3.1.11-RC1 + * @since 3.2.1-RC1 + */ + $vars = array('modes'); + extract($phpbb_dispatcher->trigger_event('core.acp_logs_info_modify_modes', compact($vars))); + return array( 'filename' => 'acp_logs', 'title' => 'ACP_LOGGING', 'version' => '1.0.0', - 'modes' => array( - 'admin' => array('title' => 'ACP_ADMIN_LOGS', 'auth' => 'acl_a_viewlogs', 'cat' => array('ACP_FORUM_LOGS')), - 'mod' => array('title' => 'ACP_MOD_LOGS', 'auth' => 'acl_a_viewlogs', 'cat' => array('ACP_FORUM_LOGS')), - 'users' => array('title' => 'ACP_USERS_LOGS', 'auth' => 'acl_a_viewlogs', 'cat' => array('ACP_FORUM_LOGS')), - 'critical' => array('title' => 'ACP_CRITICAL_LOGS', 'auth' => 'acl_a_viewlogs', 'cat' => array('ACP_FORUM_LOGS')), - ), + 'modes' => $modes, ); } |