]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/comments.pm
Revert spam
[git.ikiwiki.info.git] / IkiWiki / Plugin / comments.pm
index f3d6f20d6a3d9dab224e5ddff140f1a86edb772e..1287590a77ecb833a8a80f2b4d5a48ec12de971e 100644 (file)
@@ -504,7 +504,7 @@ sub editcomment ($$) {
                        IkiWiki::saveindex();
 
                        IkiWiki::printheader($session);
                        IkiWiki::saveindex();
 
                        IkiWiki::printheader($session);
-                       print IkiWiki::misctemplate(gettext(gettext("comment stored for moderation")),
+                       print IkiWiki::cgitemplate($cgi, gettext(gettext("comment stored for moderation")),
                                "<p>".
                                gettext("Your comment will be posted after moderator review").
                                "</p>");
                                "<p>".
                                gettext("Your comment will be posted after moderator review").
                                "</p>");
@@ -554,7 +554,7 @@ sub editcomment ($$) {
 
        }
        else {
 
        }
        else {
-               IkiWiki::showform_preview($form, \@buttons, $session, $cgi,
+               IkiWiki::showform($form, \@buttons, $session, $cgi,
                        page => $page);
        }
 
                        page => $page);
        }
 
@@ -660,7 +660,7 @@ sub commentmoderation ($$) {
        IkiWiki::run_hooks(format => sub {
                $out = shift->(page => "", content => $out);
        });
        IkiWiki::run_hooks(format => sub {
                $out = shift->(page => "", content => $out);
        });
-       print IkiWiki::misctemplate(gettext("comment moderation"), $out);
+       print IkiWiki::cgitemplate($cgi, gettext("comment moderation"), $out);
        exit;
 }
 
        exit;
 }