From ef427b6483e89d797fed11485bdc857039d3b61f Mon Sep 17 00:00:00 2001 From: Vic D'Elfant Date: Mon, 30 Apr 2007 11:44:54 +0000 Subject: - #10159 (as well as the exact same issue with reports) - #10263 git-svn-id: file:///svn/phpbb/trunk@7432 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/mcp.php | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'phpBB/mcp.php') diff --git a/phpBB/mcp.php b/phpBB/mcp.php index dc0b13c7b9..d1cdaa2aef 100644 --- a/phpBB/mcp.php +++ b/phpBB/mcp.php @@ -189,14 +189,18 @@ else // Hide some of the options if we don't have the relevant information to use them if (!$post_id) { - $module->set_display('reports', 'report_details', false); $module->set_display('main', 'post_details', false); $module->set_display('warn', 'warn_post', false); +} - if (!$topic_id || $mode == 'unapproved_posts') - { - $module->set_display('queue', 'approve_details', false); - } +if ($mode == '' || $mode == 'unapproved_topics' || $mode == 'unapproved_posts') +{ + $module->set_display('queue', 'approve_details', false); +} + +if ($mode == '' || $mode == 'reports' || $mode == 'reports_closed') +{ + $module->set_display('reports', 'report_details', false); } if (!$topic_id) -- cgit v1.2.1