aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorNathan Guse <nathaniel.guse@gmail.com>2014-03-05 18:37:26 -0600
committerNathan Guse <nathaniel.guse@gmail.com>2014-03-05 18:37:26 -0600
commit40c582688b7eb4fd5e48d06c4f2fd4c044012b08 (patch)
tree10d274a000687a91c1c40c69c3520c180d2a6101 /phpBB
parentc1ca74ee6de84282aa8b33966f878b73abb56a34 (diff)
parent82e3f5a76825d223804a8c026c88feb4ea2deb1e (diff)
downloadforums-40c582688b7eb4fd5e48d06c4f2fd4c044012b08.tar
forums-40c582688b7eb4fd5e48d06c4f2fd4c044012b08.tar.gz
forums-40c582688b7eb4fd5e48d06c4f2fd4c044012b08.tar.bz2
forums-40c582688b7eb4fd5e48d06c4f2fd4c044012b08.tar.xz
forums-40c582688b7eb4fd5e48d06c4f2fd4c044012b08.zip
Merge pull request #2054 from rxu/ticket/12213-1
[ticket/12213] Add MCP events for custom quick moderation options
Diffstat (limited to 'phpBB')
-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);
}