From: Joey Hess Date: Fri, 7 May 2010 17:44:24 +0000 (-0400) Subject: bugfixes X-Git-Tag: 3.20100515~69 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8d3c89f0c75c31c5e17a661150662e3efd3a146e;p=ikiwiki.git bugfixes --- diff --git a/IkiWiki/Plugin/comments.pm b/IkiWiki/Plugin/comments.pm index 76f6551ae..93c8c4061 100644 --- a/IkiWiki/Plugin/comments.pm +++ b/IkiWiki/Plugin/comments.pm @@ -557,7 +557,7 @@ sub commentmoderation ($$) { my %vars=$cgi->Vars; my $added=0; foreach my $id (keys %vars) { - if ($id =~ /(.*)\Q._comment(?:_pending)?\E$/) { + if ($id =~ /(.*)\._comment(?:_pending)?$/) { my $action=$cgi->param($id); next if $action eq 'Defer' && ! $rejectalldefer; @@ -621,7 +621,7 @@ sub commentmoderation ($$) { id => $id, view => $preview, } - } sort { $b->[1] <=> $a->[1] } comments_pending(); + } sort { $b->[2] <=> $a->[2] } comments_pending(); my $template=template("commentmoderation.tmpl"); $template->param(