diff options
author | Joey Hess <joey@gnu.kitenet.net> | 2009-01-25 15:42:13 -0500 |
---|---|---|
committer | Joey Hess <joey@gnu.kitenet.net> | 2009-01-25 15:42:13 -0500 |
commit | c154fa5d6cd1620be7b139b08040740a1bdfafbc (patch) | |
tree | dedb206dfb05f839c9196096f89bb92bf721947f /IkiWiki/Plugin/editpage.pm | |
parent | 0cfb159bb0f14b769f7182b0ca13e019c5df6d04 (diff) | |
download | ikiwiki-c154fa5d6cd1620be7b139b08040740a1bdfafbc.tar ikiwiki-c154fa5d6cd1620be7b139b08040740a1bdfafbc.tar.gz |
comments: If comment content checks fail, store the comment (in .ikiwiki/comments_pending) for moderator review.
Diffstat (limited to 'IkiWiki/Plugin/editpage.pm')
-rw-r--r-- | IkiWiki/Plugin/editpage.pm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/IkiWiki/Plugin/editpage.pm b/IkiWiki/Plugin/editpage.pm index bba52e4fd..c206d96a4 100644 --- a/IkiWiki/Plugin/editpage.pm +++ b/IkiWiki/Plugin/editpage.pm @@ -105,11 +105,12 @@ sub check_content (@) { $ok=1; } elsif (ref $ret eq 'CODE') { - $ret->(); + $ret->() unless $params{nonfatal}; $ok=0; } elsif (defined $ret) { - error($ret); + error($ret) unless $params{nonfatal}; + $ok=0; } } |