aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/editpage.pm
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-09-29 18:52:42 -0400
committerJoey Hess <joey@kodama.kitenet.net>2008-09-29 18:52:42 -0400
commit2ba168ac8357ad76de246d656b3da15bc9c0e722 (patch)
tree59db9cde2101adc0bd17d77123734ffab9999429 /IkiWiki/Plugin/editpage.pm
parent2d45a303e253c4a20ce456a82e8ac694b49c2c2d (diff)
downloadikiwiki-2ba168ac8357ad76de246d656b3da15bc9c0e722.tar
ikiwiki-2ba168ac8357ad76de246d656b3da15bc9c0e722.tar.gz
use newpagefile
Diffstat (limited to 'IkiWiki/Plugin/editpage.pm')
-rw-r--r--IkiWiki/Plugin/editpage.pm7
1 files changed, 1 insertions, 6 deletions
diff --git a/IkiWiki/Plugin/editpage.pm b/IkiWiki/Plugin/editpage.pm
index f44e4f857..794548c6d 100644
--- a/IkiWiki/Plugin/editpage.pm
+++ b/IkiWiki/Plugin/editpage.pm
@@ -156,12 +156,7 @@ sub cgi_editpage ($$) { #{{{
$type=pagetype($pagesources{$from});
}
$type=$config{default_pageext} unless defined $type;
- if (! $config{indexpages}) {
- $file=$page.".".$type;
- }
- else {
- $file=$page."/index.".$type;
- }
+ $file=newpagefile($page, $type);
if (! $form->submitted) {
$form->field(name => "rcsinfo", value => "", force => 1);
}