Quellcode durchsuchen

Adds an ugly ternary line to handle close/open, ignore/unignore

Signed-off-by: Suki <[email protected]>
Suki vor 11 Jahren
Ursprung
Commit
6074683fe5

+ 1 - 1
Sources/ModerationCenter.php

@@ -593,7 +593,7 @@ function ReportedPosts()
 		);
 
 		// Tell the user about it.
-		$context['report_post_action'] = isset($_GET['ignore']) ? 'ignore' : (isset($_GET['close']) ? 'close' : 'open');
+		$context['report_post_action'] = isset($_GET['ignore']) ? (!empty($_GET['ignore']) ? 'ignore' : 'unignore') : (!empty($_GET['close']) ? 'close' : 'open');
 
 		// Time to update.
 		updateSettings(array('last_mod_report_action' => time()));

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

@@ -123,6 +123,7 @@ $txt['mc_warning_template_delete'] = 'Delete Selected';
 $txt['mc_warning_template_delete_confirm'] = 'Are you sure you want to delete the selected templates?';
 $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_open'] = 'The report was successfully open.';
 $txt['report_action_close_all'] = 'You successfully closed all selected reports.';