aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/rename.pm
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2009-01-01 18:04:37 +0100
committerintrigeri <intrigeri@boum.org>2009-01-01 18:04:37 +0100
commite895157397c4602359f8612e4ce9964bcabc8928 (patch)
treec9735a94cf8be8b02f1228c8596bac48cfdbfc78 /IkiWiki/Plugin/rename.pm
parent131d2d4e7cac6bfa634fd7d356095733a64e0fd8 (diff)
downloadikiwiki-e895157397c4602359f8612e4ce9964bcabc8928.tar
ikiwiki-e895157397c4602359f8612e4ce9964bcabc8928.tar.gz
Pass src, srcfile, dest and destfile to the canrename hook.
This is not needed by the use I'm doing of it, but seems more consistent to me. Future users of this hook may need this data to make their mind. Signed-off-by: intrigeri <intrigeri@boum.org>
Diffstat (limited to 'IkiWiki/Plugin/rename.pm')
-rw-r--r--IkiWiki/Plugin/rename.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/rename.pm b/IkiWiki/Plugin/rename.pm
index 5c198f457..82639a073 100644
--- a/IkiWiki/Plugin/rename.pm
+++ b/IkiWiki/Plugin/rename.pm
@@ -91,7 +91,8 @@ sub check_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;