aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon McVittie <smcv@debian.org>2010-11-23 00:20:57 +0000
committerSimon McVittie <smcv@debian.org>2010-11-23 00:20:57 +0000
commit4625e0c4d9bfa03921ef088cf4197d2ab183889d (patch)
tree8a700d6178e9b2811944a8b93c58f3b3e152b369
parent1f019ac2aaa2ba3ec06764f9e62679918cae435d (diff)
downloadikiwiki-4625e0c4d9bfa03921ef088cf4197d2ab183889d.tar
ikiwiki-4625e0c4d9bfa03921ef088cf4197d2ab183889d.tar.gz
Pass a CGIURL into commentmoderation.tmpl
Omitting this resulted <form action=""> which is in fact a working self-referential form, but is less obvious than it ought to be.
-rw-r--r--IkiWiki/Plugin/comments.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/IkiWiki/Plugin/comments.pm b/IkiWiki/Plugin/comments.pm
index f11a81736..a3cb7c3d5 100644
--- a/IkiWiki/Plugin/comments.pm
+++ b/IkiWiki/Plugin/comments.pm
@@ -656,6 +656,7 @@ sub commentmoderation ($$) {
$template->param(
sid => $session->id,
comments => \@comments,
+ cgiurl => IkiWiki::cgiurl(),
);
IkiWiki::printheader($session);
my $out=$template->output;