Photos
Blog
Projects
vanrenterghem.biz
projects
/
git.ikiwiki.info.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
be0c2df
)
bugfixes
author
Joey Hess
<joey@kitenet.net>
Fri, 7 May 2010 17:44:24 +0000
(13:44 -0400)
committer
Joey Hess
<joey@kitenet.net>
Fri, 7 May 2010 17:44:24 +0000
(13:44 -0400)
IkiWiki/Plugin/comments.pm
patch
|
blob
|
history
diff --git
a/IkiWiki/Plugin/comments.pm
b/IkiWiki/Plugin/comments.pm
index 76f6551aef67cf7a67d3634906fe9e19cd9e13a1..93c8c4061b111cae5a2ece8bd94c5a77c7957f7f 100644
(file)
--- 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) {
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(