aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/editpage.pm
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2009-01-25 15:42:13 -0500
committerJoey Hess <joey@gnu.kitenet.net>2009-01-25 15:42:13 -0500
commitc154fa5d6cd1620be7b139b08040740a1bdfafbc (patch)
treededb206dfb05f839c9196096f89bb92bf721947f /IkiWiki/Plugin/editpage.pm
parent0cfb159bb0f14b769f7182b0ca13e019c5df6d04 (diff)
downloadikiwiki-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.pm5
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;
}
}