From 16c56af605f40db843b859c537d42494e33ae4c4 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Fri, 16 Jan 2009 21:58:05 -0500 Subject: make postcomment() pagespecs work while in checkcontent --- IkiWiki/Plugin/comments.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'IkiWiki/Plugin/comments.pm') 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"; -- cgit v1.2.3