summaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/rename.pm
diff options
context:
space:
mode:
Diffstat (limited to 'IkiWiki/Plugin/rename.pm')
-rw-r--r--IkiWiki/Plugin/rename.pm7
1 files changed, 1 insertions, 6 deletions
diff --git a/IkiWiki/Plugin/rename.pm b/IkiWiki/Plugin/rename.pm
index b2c3eedfe..218cab489 100644
--- a/IkiWiki/Plugin/rename.pm
+++ b/IkiWiki/Plugin/rename.pm
@@ -279,12 +279,7 @@ sub sessioncgi ($$) { #{{{
$type=$ext;
}
- if (! $config{indexpages}) {
- $destfile.=".".$type;
- }
- else {
- $destfile.="/index.".$type;
- }
+ $destfile=newpagefile($dest, $type);
}
push @torename, {
src => $src,