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,7 +279,12 @@ sub sessioncgi ($$) { #{{{
$type=$ext; $type=$ext;
} }
$destfile.=".".$type; if (! $config{indexpages}) {
$destfile.=".".$type;
}
else {
$destfile.="/index.".$type;
}
} }
push @torename, { push @torename, {
src => $src, src => $src,