mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
- #10159 (as well as the exact same issue with reports)
- #10263 git-svn-id: file:///svn/phpbb/trunk@7432 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
ed272ece1d
commit
ef427b6483
2 changed files with 11 additions and 6 deletions
|
@ -189,14 +189,18 @@ else
|
||||||
// Hide some of the options if we don't have the relevant information to use them
|
// Hide some of the options if we don't have the relevant information to use them
|
||||||
if (!$post_id)
|
if (!$post_id)
|
||||||
{
|
{
|
||||||
$module->set_display('reports', 'report_details', false);
|
|
||||||
$module->set_display('main', 'post_details', false);
|
$module->set_display('main', 'post_details', false);
|
||||||
$module->set_display('warn', 'warn_post', false);
|
$module->set_display('warn', 'warn_post', false);
|
||||||
|
}
|
||||||
|
|
||||||
if (!$topic_id || $mode == 'unapproved_posts')
|
if ($mode == '' || $mode == 'unapproved_topics' || $mode == 'unapproved_posts')
|
||||||
{
|
{
|
||||||
$module->set_display('queue', 'approve_details', false);
|
$module->set_display('queue', 'approve_details', false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($mode == '' || $mode == 'reports' || $mode == 'reports_closed')
|
||||||
|
{
|
||||||
|
$module->set_display('reports', 'report_details', false);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!$topic_id)
|
if (!$topic_id)
|
||||||
|
|
|
@ -132,7 +132,8 @@ if ($submit && $reason_id)
|
||||||
{
|
{
|
||||||
$sql = 'UPDATE ' . TOPICS_TABLE . '
|
$sql = 'UPDATE ' . TOPICS_TABLE . '
|
||||||
SET topic_reported = 1
|
SET topic_reported = 1
|
||||||
WHERE topic_id = ' . $report_data['topic_id'];
|
WHERE topic_id = ' . $report_data['topic_id'] . '
|
||||||
|
OR topic_moved_id = ' . $report_data['topic_id'];
|
||||||
$db->sql_query($sql);
|
$db->sql_query($sql);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue