X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/11550f95937c51d49dced7dba17b940be2500386..dfa9556480e047704fbaa60616fdef7bf5ff2fc5:/IkiWiki/Plugin/rename.pm diff --git a/IkiWiki/Plugin/rename.pm b/IkiWiki/Plugin/rename.pm index f90a3b7b7..d6079e198 100644 --- a/IkiWiki/Plugin/rename.pm +++ b/IkiWiki/Plugin/rename.pm @@ -254,7 +254,8 @@ sub sessioncgi ($$) { #{{{ my $type=$q->param('type'); if (defined $type && length $type && $IkiWiki::hooks{htmlize}{$type}) { $type=IkiWiki::possibly_foolish_untaint($type); - } else { + } + else { my ($ext)=$srcfile=~/\.([^.]+)$/; $type=$ext; } @@ -274,7 +275,7 @@ sub sessioncgi ($$) { #{{{ if ($config{rcs}) { IkiWiki::rcs_rename($srcfile, $destfile); IkiWiki::rcs_commit_staged( - sprintf(gettext("rename %s to %s"), $src, $dest), + sprintf(gettext("rename %s to %s"), $srcfile, $destfile), $session->param("name"), $ENV{REMOTE_ADDR}); } else { @@ -303,7 +304,7 @@ sub sessioncgi ($$) { #{{{ next if $@; my $conflict=IkiWiki::rcs_commit( $file, - sprintf(gettext("update for rename of %s to %s"), $src, $dest), + sprintf(gettext("update for rename of %s to %s"), $srcfile, $destfile), $token, $session->param("name"), $ENV{REMOTE_ADDR}