mark: A photo of Mark kneeling on top of the Taal Volcano in the Philippines. It was a long hike. (Default)
Mark Smith ([staff profile] mark) wrote in [site community profile] changelog2009-06-12 08:51 pm

[dw-free] Closing an already-closed spam report gives "Closed 0E0 reports" error message.

[commit: http://hg.dwscoalition.org/dw-free/rev/bdc6e7c36219]

http://bugs.dwscoalition.org/show_bug.cgi?id=1228

More useful message when the spamreports have already been closed.

Patch by [staff profile] denise.

Files modified:
  • htdocs/admin/spamreports.bml
--------------------------------------------------------------------------------
diff -r bbe1e7bc106f -r bdc6e7c36219 htdocs/admin/spamreports.bml
--- a/htdocs/admin/spamreports.bml	Fri Jun 12 20:49:28 2009 +0000
+++ b/htdocs/admin/spamreports.bml	Fri Jun 12 20:51:49 2009 +0000
@@ -243,8 +243,9 @@
 
         $title = "Close Reports";
         $body .= "<?p [ <a href=\"spamreports.bml\">&lt;&lt; Front Page</a> ] $backlink p?>\n";
+
         my $s = $count == 1 ? '' : 's';
-        $body .= "Closed $count report$s.\n";
+        $body .= $count > 0 ? "Closed $count report$s.\n" : "Reports were already closed.";
 
     } else {
         # standard
--------------------------------------------------------------------------------