From: Joey Hess Date: Sat, 17 Jan 2009 02:58:05 +0000 (-0500) Subject: make postcomment() pagespecs work while in checkcontent X-Git-Tag: 3.02~15 X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/commitdiff_plain/16c56af605f40db843b859c537d42494e33ae4c4 make postcomment() pagespecs work while in checkcontent --- diff --git a/IkiWiki/Plugin/comments.pm b/IkiWiki/Plugin/comments.pm index 14e785c8f..833bedf25 100644 --- a/IkiWiki/Plugin/comments.pm +++ b/IkiWiki/Plugin/comments.pm @@ -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";