]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
Pass a CGIURL into commentmoderation.tmpl
authorSimon McVittie <smcv@debian.org>
Tue, 23 Nov 2010 00:20:57 +0000 (00:20 +0000)
committerSimon McVittie <smcv@debian.org>
Tue, 23 Nov 2010 00:20:57 +0000 (00:20 +0000)
Omitting this resulted <form action=""> which is in fact a working
self-referential form, but is less obvious than it ought to be.

IkiWiki/Plugin/comments.pm

index f11a817367e1860f490c094f6476fac59aa39769..a3cb7c3d56c784f18251aaa34a14776d6f107962 100644 (file)
@@ -656,6 +656,7 @@ sub commentmoderation ($$) {
        $template->param(
                sid => $session->id,
                comments => \@comments,
        $template->param(
                sid => $session->id,
                comments => \@comments,
+               cgiurl => IkiWiki::cgiurl(),
        );
        IkiWiki::printheader($session);
        my $out=$template->output;
        );
        IkiWiki::printheader($session);
        my $out=$template->output;