]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/remove.pm
I'm not redefining any subs after all, don't prevent those warnings.
[git.ikiwiki.info.git] / IkiWiki / Plugin / remove.pm
index f62bfb1d75d55d0f78096567085e9f993a194307..cbc8a0f2ce70719e770fc64853feaaa37252f23b 100644 (file)
@@ -58,7 +58,7 @@ sub check_canremove ($$$) {
        my $canremove;
        IkiWiki::run_hooks(canremove => sub {
                return if defined $canremove;
-               my $ret=shift->($page, $q, $session);
+               my $ret=shift->(page => $page, cgi => $q, session => $session);
                if (defined $ret) {
                        if ($ret eq "") {
                                $canremove=1;
@@ -73,7 +73,6 @@ sub check_canremove ($$$) {
                        }
                }
        });
-       return $canremove;
 }
 
 sub formbuilder_setup (@) {