]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/Plugin/aggregate.pm
* Finally apply the index.html patch, with thanks to everyone who worked
[ikiwiki.git] / IkiWiki / Plugin / aggregate.pm
index 6e4834ce0457b60581c05992d8ffcb5e686fa042..bb5edfa65ca5a261ed804f52e55f04abb493eb52 100644 (file)
@@ -321,7 +321,7 @@ sub add_page (@) { #{{{
                # NB: This doesn't check for path length limits.
                eval q{use POSIX};
                my $max=POSIX::pathconf($config{srcdir}, &POSIX::_PC_NAME_MAX);
-               if (defined $max && length(htmlpage($page)) >= $max) {
+               if (defined $max && length(htmlfn($page)) >= $max) {
                        $c="";
                        $page=$feed->{dir}."/item";
                        while (exists $IkiWiki::pagecase{lc $page.$c} ||
@@ -357,7 +357,7 @@ sub add_page (@) { #{{{
        if (ref $feed->{tags}) {
                $template->param(tags => [map { tag => $_ }, @{$feed->{tags}}]);
        }
-       writefile(htmlpage($guid->{page}), $config{srcdir},
+       writefile(htmlfn($guid->{page}), $config{srcdir},
                $template->output);
 
        # Set the mtime, this lets the build process get the right creation
@@ -435,4 +435,8 @@ sub pagefile ($) { #{{{
        return "$config{srcdir}/".htmlpage($page);
 } #}}}
 
+sub htmlfn ($) { #{{{
+       return shift().".html";
+} #}}}
+
 1