]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/rename.pm
(no commit message)
[git.ikiwiki.info.git] / IkiWiki / Plugin / rename.pm
index 977c09e67f18ff033638514f6563840cda265314..ad5e726458cedbbb63a069297372e3bb739fe486 100644 (file)
@@ -108,6 +108,7 @@ sub check_canrename ($$$$$$) {
                        }
                }
        });
+       return defined $canrename ? $canrename : 1;
 }
 
 sub rename_form ($$$) {
@@ -349,9 +350,8 @@ sub sessioncgi ($$) {
                                $pagesources{$rename->{src}}=$rename->{destfile};
                        }
                        IkiWiki::rcs_commit_staged(
-                               sprintf(gettext("rename %s to %s"), $srcfile, $destfile),
-                               $session->param("name"),
-                               $session->remote_addr(),
+                               message => sprintf(gettext("rename %s to %s"), $srcfile, $destfile),
+                               session => $session,
                        ) if $config{rcs};
 
                        # Then link fixups.