]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/editpage.pm
po: make the "backlinks involve dependencies" feature optional
[git.ikiwiki.info.git] / IkiWiki / Plugin / editpage.pm
index cfed51afde08fa40461866f9e0f951b167d5b9f2..480e82804a3beb599df3969d788508dd550bccb6 100644 (file)
@@ -105,11 +105,12 @@ sub check_content (@) {
                                $ok=1;
                        }
                        elsif (ref $ret eq 'CODE') {
                                $ok=1;
                        }
                        elsif (ref $ret eq 'CODE') {
-                               $ret->();
+                               $ret->() unless $params{nonfatal};
                                $ok=0;
                        }
                        elsif (defined $ret) {
                                $ok=0;
                        }
                        elsif (defined $ret) {
-                               error($ret);
+                               error($ret) unless $params{nonfatal};
+                               $ok=0;
                        }
                }
 
                        }
                }