Photos
Blog
Projects
vanrenterghem.biz
projects
/
git.ikiwiki.info.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
41d7ccf
)
support indexpages when renaming pages
author
Joey Hess
<joey@kodama.kitenet.net>
Mon, 29 Sep 2008 22:29:53 +0000
(18:29 -0400)
committer
Joey Hess
<joey@kodama.kitenet.net>
Mon, 29 Sep 2008 22:29:53 +0000
(18:29 -0400)
Note that the page filename code used here and in editpage are identical..
IkiWiki/Plugin/rename.pm
patch
|
blob
|
history
diff --git
a/IkiWiki/Plugin/rename.pm
b/IkiWiki/Plugin/rename.pm
index 3ee457ff09e0d8bc7ff4b24e21cc8e6077839294..b2c3eedfe075a20b98c57b7e2cd812fcbb7bc276 100644
(file)
--- 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,