aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2010-11-29 13:28:28 -0400
committerJoey Hess <joey@kitenet.net>2010-11-29 13:28:28 -0400
commita5120846cb6461616dce4d0042a4fd45211170e4 (patch)
tree7cec2ccdbc641aa08ed1c3ca64f059afe4357229 /IkiWiki
parentb342d0960666804b595a105919e1288f6057a686 (diff)
downloadikiwiki-a5120846cb6461616dce4d0042a4fd45211170e4.tar
ikiwiki-a5120846cb6461616dce4d0042a4fd45211170e4.tar.gz
rename: Fix to pass named parameters to rcs_commit
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/Plugin/rename.pm9
1 files changed, 4 insertions, 5 deletions
diff --git a/IkiWiki/Plugin/rename.pm b/IkiWiki/Plugin/rename.pm
index ad5e72645..a05e85be0 100644
--- a/IkiWiki/Plugin/rename.pm
+++ b/IkiWiki/Plugin/rename.pm
@@ -574,11 +574,10 @@ sub fixlinks ($$$) {
eval { writefile($file, $config{srcdir}, $content) };
next if $@;
my $conflict=IkiWiki::rcs_commit(
- $file,
- sprintf(gettext("update for rename of %s to %s"), $rename->{srcfile}, $rename->{destfile}),
- $token,
- $session->param("name"),
- $session->remote_addr(),
+ file => $file,
+ message => sprintf(gettext("update for rename of %s to %s"), $rename->{srcfile}, $rename->{destfile}),
+ token => $token,
+ session => $session,
);
push @fixedlinks, $page if ! defined $conflict;
}