diff options
author | Joey Hess <joey@gnu.kitenet.net> | 2009-01-16 21:58:05 -0500 |
---|---|---|
committer | Joey Hess <joey@gnu.kitenet.net> | 2009-01-16 21:58:05 -0500 |
commit | 16c56af605f40db843b859c537d42494e33ae4c4 (patch) | |
tree | dcb2cf307a094e5c1b1c731beb691208e44bd046 | |
parent | ae20879e843c1f65d6af3f9da24634414f7aed51 (diff) |
make postcomment() pagespecs work while in checkcontent
-rw-r--r-- | IkiWiki/Plugin/comments.pm | 5 |
1 files changed, 4 insertions, 1 deletions
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"; |