|
@@ -658,23 +658,6 @@ function removeMessage($message, $decreasePostCount = true)
|
|
|
isAllowedTo('approve_posts');
|
|
|
}
|
|
|
|
|
|
- // Close any moderation reports for this message.
|
|
|
- $smcFunc['db_query']('', '
|
|
|
- UPDATE {db_prefix}log_reported
|
|
|
- SET closed = {int:is_closed}
|
|
|
- WHERE id_msg = {int:id_msg}',
|
|
|
- array(
|
|
|
- 'is_closed' => 1,
|
|
|
- 'id_msg' => $message,
|
|
|
- )
|
|
|
- );
|
|
|
- if ($smcFunc['db_affected_rows']() != 0)
|
|
|
- {
|
|
|
- require_once($sourcedir . '/ModerationCenter.php');
|
|
|
- updateSettings(array('last_mod_report_action' => time()));
|
|
|
- recountOpenReports();
|
|
|
- }
|
|
|
-
|
|
|
// Delete the *whole* topic, but only if the topic consists of one message.
|
|
|
if ($row['id_first_msg'] == $message)
|
|
|
{
|
|
@@ -993,6 +976,23 @@ function removeMessage($message, $decreasePostCount = true)
|
|
|
else
|
|
|
updateLastMessages($row['id_board']);
|
|
|
|
|
|
+ // Close any moderation reports for this message.
|
|
|
+ $smcFunc['db_query']('', '
|
|
|
+ UPDATE {db_prefix}log_reported
|
|
|
+ SET closed = {int:is_closed}
|
|
|
+ WHERE id_msg = {int:id_msg}',
|
|
|
+ array(
|
|
|
+ 'is_closed' => 1,
|
|
|
+ 'id_msg' => $message,
|
|
|
+ )
|
|
|
+ );
|
|
|
+ if ($smcFunc['db_affected_rows']() != 0)
|
|
|
+ {
|
|
|
+ require_once($sourcedir . '/ModerationCenter.php');
|
|
|
+ updateSettings(array('last_mod_report_action' => time()));
|
|
|
+ recountOpenReports();
|
|
|
+ }
|
|
|
+
|
|
|
return false;
|
|
|
}
|
|
|
|