aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/mcp.php
diff options
context:
space:
mode:
authorVic D'Elfant <vic@phpbb.com>2007-04-30 11:44:54 +0000
committerVic D'Elfant <vic@phpbb.com>2007-04-30 11:44:54 +0000
commitef427b6483e89d797fed11485bdc857039d3b61f (patch)
tree01dc6eb3921698e836fbd4c6db3d8d860bd2d45b /phpBB/mcp.php
parented272ece1df30fd12af908855366532993bfbc8f (diff)
downloadforums-ef427b6483e89d797fed11485bdc857039d3b61f.tar
forums-ef427b6483e89d797fed11485bdc857039d3b61f.tar.gz
forums-ef427b6483e89d797fed11485bdc857039d3b61f.tar.bz2
forums-ef427b6483e89d797fed11485bdc857039d3b61f.tar.xz
forums-ef427b6483e89d797fed11485bdc857039d3b61f.zip
- #10159 (as well as the exact same issue with reports)
- #10263 git-svn-id: file:///svn/phpbb/trunk@7432 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/mcp.php')
-rw-r--r--phpBB/mcp.php14
1 files changed, 9 insertions, 5 deletions
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)