]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/rename.pm
po: remove all dependencies on nicepagetitle
[git.ikiwiki.info.git] / IkiWiki / Plugin / rename.pm
index 90af1b4a985e5f94bd724ac88064ccf53d7d4919..f39c93332e311fd3cc452e06525c2d4827eef984 100644 (file)
@@ -312,7 +312,13 @@ sub sessioncgi ($$) {
                                required => 1,
                        };
 
                                required => 1,
                        };
 
-                       IkiWiki::run_hooks(rename => sub { shift->(\@torename, $q, $session); });
+                       IkiWiki::run_hooks(rename => sub {
+                               @torename=shift->(
+                                       torename => \@torename,
+                                       cgi => $q,
+                                       session => $session
+                               );
+                       });
 
                        # See if any subpages need to be renamed.
                        if ($q->param("subpages") && $src ne $dest) {
 
                        # See if any subpages need to be renamed.
                        if ($q->param("subpages") && $src ne $dest) {