Browse Source

We can actually handle both ignore and closing actions in one single big fat function

Signed-off-by: Suki <[email protected]>
Suki 11 years ago
parent
commit
16eb48e152
2 changed files with 2 additions and 3 deletions
  1. 1 2
      Sources/ReportedPosts.php
  2. 1 1
      Themes/default/ReportedPosts.template.php

+ 1 - 2
Sources/ReportedPosts.php

@@ -46,7 +46,6 @@ function ReportedPosts()
 	$sub_actions = array(
 		'show' => 'ShowReports', // Both open and closed reports
 		'handle' => 'HandleReport', // Deals with closing/opening reports.
-		'disregard' => 'DisregardReport',  // Ignore/un-ignore
 		'details' => 'ReportDetails', // Shows a single report and its comments.
 		'handlecomment' => 'HandleComment', // CRUD actions for moderator comments.
 		'editcomment' => 'EditComment',
@@ -349,7 +348,7 @@ function EditComment()
 	}
 }
 
-function DisregardReport()
+function HandleReport()
 {
 	global $scripturl;
 

+ 1 - 1
Themes/default/ReportedPosts.template.php

@@ -63,7 +63,7 @@ function template_reported_posts()
 				<br>
 				<ul class="quickbuttons">
 					<li><a href="', $report['report_href'], '">', $details_button, '</a></li>
-					<li><a href="', $scripturl, '?action=moderate;area=reports;sa=disregard', !$report['ignore'] ? ';ignore' : '', ';rid=', $report['id'], ';start=', $context['start'], ';', $context['session_var'], '=', $context['session_id'], '" ', !$report['ignore'] ? 'onclick="return confirm(\'' . $txt['mc_reportedp_ignore_confirm'] . '\');"' : '', '>', $report['ignore'] ? $unignore_button : $ignore_button, '</a></li>
+					<li><a href="', $scripturl, '?action=moderate;area=reports;sa=handle', !$report['ignore'] ? ';ignore' : '', ';rid=', $report['id'], ';start=', $context['start'], ';', $context['session_var'], '=', $context['session_id'], '" ', !$report['ignore'] ? 'onclick="return confirm(\'' . $txt['mc_reportedp_ignore_confirm'] . '\');"' : '', '>', $report['ignore'] ? $unignore_button : $ignore_button, '</a></li>
 					<li><a href="', $scripturl, '?action=moderate;area=reports;sa=handle', !$report['closed'] ? ';close' : '', ';rid=', $report['id'], ';start=', $context['start'], ';', $context['session_var'], '=', $context['session_id'], '">', $close_button, '</a></li>';
 
 		// Delete message button.