]> sipb.mit.edu Git - ikiwiki.git/commitdiff
bugfixes
authorJoey Hess <joey@kitenet.net>
Fri, 7 May 2010 17:44:24 +0000 (13:44 -0400)
committerJoey Hess <joey@kitenet.net>
Fri, 7 May 2010 17:44:24 +0000 (13:44 -0400)
IkiWiki/Plugin/comments.pm

index 76f6551aef67cf7a67d3634906fe9e19cd9e13a1..93c8c4061b111cae5a2ece8bd94c5a77c7957f7f 100644 (file)
@@ -557,7 +557,7 @@ sub commentmoderation ($$) {
                my %vars=$cgi->Vars;
                my $added=0;
                foreach my $id (keys %vars) {
                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;
 
                                my $action=$cgi->param($id);
                                next if $action eq 'Defer' && ! $rejectalldefer;
 
@@ -621,7 +621,7 @@ sub commentmoderation ($$) {
                        id => $id,
                        view => $preview,
                }
                        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(
 
        my $template=template("commentmoderation.tmpl");
        $template->param(