support indexpages when renaming pages

Note that the page filename code used here and in editpage are identical..
master
Joey Hess 2008-09-29 18:29:53 -04:00
parent 41d7ccfa79
commit a7fd6debc5
1 changed files with 6 additions and 1 deletions

View File

@ -279,8 +279,13 @@ sub sessioncgi ($$) { #{{{
$type=$ext;
}
if (! $config{indexpages}) {
$destfile.=".".$type;
}
else {
$destfile.="/index.".$type;
}
}
push @torename, {
src => $src,
srcfile => $srcfile,