Browse Source

Forgot to add a confirmation message when deleting multiple reports

Signed-off-by: Suki <[email protected]>
Suki 11 years ago
parent
commit
2a730ce5ce

+ 2 - 0
Sources/ReportedPosts.php

@@ -130,6 +130,8 @@ function ShowReports()
 		if (!empty($toClose))
 			updateReport('closed', 1, $toClose);
 
+		$_SESSION['rc_confirmation'] = 'close_all';
+
 		// Force a page refresh.
 		redirectexit($scripturl . '?action=moderate;area=reports');
 	}

+ 1 - 0
Themes/default/languages/ModerationCenter.english.php

@@ -129,6 +129,7 @@ $txt['report_action_message_deleted'] = 'The message was successfully deleted.';
 $txt['report_action_ignore'] = 'The report was successfully ignored.';
 $txt['report_action_unignore'] = 'The report was successfully un-ignored.';
 $txt['report_action_close'] = 'The report was successfully closed.';
+$txt['report_action_close_all'] = 'You successfully closed all reports.';
 $txt['report_action_open'] = 'The report was successfully open.';
 $txt['report_action_close_all'] = 'You successfully closed all selected reports.';