aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2009-01-16 21:58:05 -0500
committerJoey Hess <joey@gnu.kitenet.net>2009-01-16 21:58:05 -0500
commit16c56af605f40db843b859c537d42494e33ae4c4 (patch)
treedcb2cf307a094e5c1b1c731beb691208e44bd046
parentae20879e843c1f65d6af3f9da24634414f7aed51 (diff)
downloadikiwiki-16c56af605f40db843b859c537d42494e33ae4c4.tar
ikiwiki-16c56af605f40db843b859c537d42494e33ae4c4.tar.gz
make postcomment() pagespecs work while in checkcontent
-rw-r--r--IkiWiki/Plugin/comments.pm5
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";