]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki.pm
typo
[git.ikiwiki.info.git] / IkiWiki.pm
index d114c9a69d760194e05c788e36a74d4c8ab3c144..6da281999f0b4c035805626f11d6e244c105d69f 100644 (file)
@@ -1455,12 +1455,11 @@ sub filter ($$$) {
        return $content;
 }
 
-sub check_canedit ($$$;$$) {
+sub check_canedit ($$$;$) {
        my $page=shift;
        my $q=shift;
        my $session=shift;
        my $nonfatal=shift;
-       my $nosubs=shift;
        
        my $canedit;
        run_hooks(canedit => sub {
@@ -1471,7 +1470,6 @@ sub check_canedit ($$$;$$) {
                                $canedit=1;
                        }
                        elsif (ref $ret eq 'CODE') {
-                               error(sprintf(gettext("you are not allowed to change %s"), $page)) if $nosubs && ! $nonfatal;
                                $ret->() unless $nonfatal;
                                $canedit=0;
                        }