aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/mcp.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/mcp.php')
-rw-r--r--phpBB/mcp.php17
1 files changed, 15 insertions, 2 deletions
diff --git a/phpBB/mcp.php b/phpBB/mcp.php
index c5e975d9ae..5a066de76f 100644
--- a/phpBB/mcp.php
+++ b/phpBB/mcp.php
@@ -245,14 +245,22 @@ class module
// Add Item to Submodule Title
function add_menu_item($module_name, $mode)
{
- global $db, $user;
+ global $db, $user, $auth;
if ($module_name != 'queue')
{
return '';
}
- $forum_list = get_forum_list('m_approve');
+ $forum_id = request_var('f', 0);
+ if ($forum_id && $auth->acl_get('m_approve', $forum_id))
+ {
+ $forum_list = array($forum_id);
+ }
+ else
+ {
+ $forum_list = get_forum_list('m_approve');
+ }
switch ($mode)
{
@@ -327,6 +335,11 @@ $mode = request_var('mode', '');
$mode2 = (isset($_REQUEST['quick'])) ? request_var('mode2', '') : '';
$module = request_var('i', '');
+if (is_array($mode))
+{
+ list($mode, ) = each($mode);
+}
+
if ($mode2)
{
$mode = $mode2;