]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/Plugin/comments.pm
remove cansave plugin, now replaced by Joey's checkcontent one
[ikiwiki.git] / IkiWiki / Plugin / comments.pm
index 14e785c8f71cc06977899abc5220856697f5fb4d..833bedf25dcbad59a6f1dc3faed0f5c764b03db9 100644 (file)
@@ -469,6 +469,7 @@ sub sessioncgi ($$) {
        if ($form->submitted eq POST_COMMENT && $form->validate) {
                IkiWiki::checksessionexpiry($cgi, $session);
                
+               $postcomment=1;
                IkiWiki::check_content(content => $form->field('editcontent'),
                        subject => $form->field('subject'),
                        $config{comments_allowauthor} ? (
@@ -476,7 +477,9 @@ sub sessioncgi ($$) {
                                url => $form->field('url'),
                        ) : (),
                        page => $location,
-                       cgi => $cgi, session => $session);
+                       cgi => $cgi, session => $session
+               );
+               $postcomment=0;
                
                my $file = "$location._comment";