summaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-09-29 18:29:53 -0400
committerJoey Hess <joey@kodama.kitenet.net>2008-09-29 18:29:53 -0400
commita7fd6debc50e95d189f08cd47d1fd1fe2a5aa2d6 (patch)
tree4e7a2c8fd35296a126e56b50b0a43f480573d4e3 /IkiWiki
parent41d7ccfa792d5316e85054d4c066f1680f926c9f (diff)
support indexpages when renaming pages
Note that the page filename code used here and in editpage are identical..
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/Plugin/rename.pm7
1 files changed, 6 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/rename.pm b/IkiWiki/Plugin/rename.pm
index 3ee457ff0..b2c3eedfe 100644
--- a/IkiWiki/Plugin/rename.pm
+++ b/IkiWiki/Plugin/rename.pm
@@ -279,7 +279,12 @@ sub sessioncgi ($$) { #{{{
$type=$ext;
}
- $destfile.=".".$type;
+ if (! $config{indexpages}) {
+ $destfile.=".".$type;
+ }
+ else {
+ $destfile.="/index.".$type;
+ }
}
push @torename, {
src => $src,