]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/rename.pm
po: register a (dummy) cansave hook
[git.ikiwiki.info.git] / IkiWiki / Plugin / rename.pm
index 5c198f45721b5f441325dd8f44aed276253b53d1..82639a073349f8f2ef1d5943df11b653a2f88a9a 100644 (file)
@@ -91,7 +91,8 @@ sub check_canrename ($$$$$$) {
        my $canrename;
        IkiWiki::run_hooks(canrename => sub {
                return if defined $canrename;
        my $canrename;
        IkiWiki::run_hooks(canrename => sub {
                return if defined $canrename;
-               my $ret=shift->($src, $q, $session);
+               my $ret=shift->($q, $session, src => $src, srcfile => $srcfile,
+                               dest => $dest, destfile => $destfile);
                if (defined $ret) {
                        if ($ret eq "") {
                                $canrename=1;
                if (defined $ret) {
                        if ($ret eq "") {
                                $canrename=1;