aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/mcp.php
diff options
context:
space:
mode:
authorbrunoais <brunoaiss@gmail.com>2014-11-28 15:04:31 +0000
committerbrunoais <brunoaiss@gmail.com>2014-11-28 15:04:31 +0000
commit88798b35147986d225e395f6ddbc3e344015d939 (patch)
treee4392431c6dc7153cdbec19977acfcff3424da35 /phpBB/mcp.php
parent1fc7bd107d8940fd754d8a683f6f58f05f122ccb (diff)
downloadforums-88798b35147986d225e395f6ddbc3e344015d939.tar
forums-88798b35147986d225e395f6ddbc3e344015d939.tar.gz
forums-88798b35147986d225e395f6ddbc3e344015d939.tar.bz2
forums-88798b35147986d225e395f6ddbc3e344015d939.tar.xz
forums-88798b35147986d225e395f6ddbc3e344015d939.zip
[ticket/13141] Adding more variables to the event
Adding action, forum_id, mode, module and quickmod to core.mcp_global_f_read_auth_after PHPBB3-13141
Diffstat (limited to 'phpBB/mcp.php')
-rw-r--r--phpBB/mcp.php14
1 files changed, 11 insertions, 3 deletions
diff --git a/phpBB/mcp.php b/phpBB/mcp.php
index 737f4b4cc6..8fbfb31e14 100644
--- a/phpBB/mcp.php
+++ b/phpBB/mcp.php
@@ -140,13 +140,21 @@ if ($forum_id && !$auth->acl_get('f_read', $forum_id))
* Allow applying additional permissions to MCP access besides f_read
*
* @event core.mcp_global_f_read_auth_after
-* @var string topic_id The topic the user tried to access
-* @var array forum_id The forum the user tried to access
+* @var string action The action the user tried to execute
+* @var int forum_id The forum the user tried to access
+* @var string mode The MCP module the user is trying to access
+* @var p_master module Module system class
+* @var bool quickmod True if the user is accessing using quickmod tools
+* @var int topic_id The topic the user tried to access
* @since 3.1.1-RC1
*/
$vars = array(
- 'topic_id',
+ 'action',
'forum_id',
+ 'mode',
+ 'module',
+ 'quickmod',
+ 'topic_id',
);
extract($phpbb_dispatcher->trigger_event('core.mcp_global_f_read_auth_after', compact($vars)));