aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/mcp.php
diff options
context:
space:
mode:
authorrxu <rxu@mail.ru>2014-02-23 00:41:21 +0800
committerrxu <rxu@mail.ru>2014-02-23 01:33:34 +0800
commit82e3f5a76825d223804a8c026c88feb4ea2deb1e (patch)
tree3e9bf261906b10762279eb70ef99bae694d2826d /phpBB/mcp.php
parente56f562d476fe84706bbe23edfd844d5f782043d (diff)
downloadforums-82e3f5a76825d223804a8c026c88feb4ea2deb1e.tar
forums-82e3f5a76825d223804a8c026c88feb4ea2deb1e.tar.gz
forums-82e3f5a76825d223804a8c026c88feb4ea2deb1e.tar.bz2
forums-82e3f5a76825d223804a8c026c88feb4ea2deb1e.tar.xz
forums-82e3f5a76825d223804a8c026c88feb4ea2deb1e.zip
[ticket/12213] Add MCP events for custom quick moderation options
Addition to PR #2045 - rename the flag variable to more sensible one. PHPBB3-12213
Diffstat (limited to 'phpBB/mcp.php')
-rw-r--r--phpBB/mcp.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/phpBB/mcp.php b/phpBB/mcp.php
index 313b24b6f1..24a7bebeba 100644
--- a/phpBB/mcp.php
+++ b/phpBB/mcp.php
@@ -186,7 +186,7 @@ if ($quickmod)
// If needed, the flag can be set to true within event listener
// to indicate that the action was handled properly
// and to pass by the trigger_error() call below
- $break = false;
+ $is_valid_action = false;
/**
* This event allows you to add custom quickmod options
@@ -194,12 +194,12 @@ if ($quickmod)
* @event core.modify_quickmod_options
* @var object module Instance of module system class
* @var string action Quickmod option
- * @var bool break Flag indicating if the action was handled properly
+ * @var bool is_valid_action Flag indicating if the action was handled properly
* @since 3.1.0-a4
*/
- extract($phpbb_dispatcher->trigger_event('core.modify_quickmod_options', compact(array('module', 'action', 'break'))));
+ extract($phpbb_dispatcher->trigger_event('core.modify_quickmod_options', compact(array('module', 'action', 'is_valid_action'))));
- if (!$break)
+ if (!$is_valid_action)
{
trigger_error($user->lang('QUICKMOD_ACTION_NOT_ALLOWED', $action), E_USER_ERROR);
}