]> sipb.mit.edu Git - ikiwiki.git/commitdiff
support indexpages
authorJoey Hess <joey@kodama.kitenet.net>
Mon, 29 Sep 2008 23:08:12 +0000 (19:08 -0400)
committerJoey Hess <joey@kodama.kitenet.net>
Mon, 29 Sep 2008 23:08:12 +0000 (19:08 -0400)
IkiWiki/Plugin/autoindex.pm

index 6ff06538f3a17d1a723d8384cd20d760a4bd167f..a79a06314900e42346e0cb4972e778a7b35df930 100644 (file)
@@ -21,7 +21,7 @@ sub getsetup () { #{{{
 
 sub genindex ($) { #{{{
        my $page=shift;
 
 sub genindex ($) { #{{{
        my $page=shift;
-       my $file=$page.".".$config{default_pageext};
+       my $file=newpagefile($page, $config{default_pageext});
        my $template=template("autoindex.tmpl");
        $template->param(page => $page);
        writefile($file, $config{srcdir}, $template->output);
        my $template=template("autoindex.tmpl");
        $template->param(page => $page);
        writefile($file, $config{srcdir}, $template->output);