]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
Merge commit 'origin/master' into aggregateinternal
authorSimon McVittie <smcv@carbon.pseudorandom.co.uk>
Mon, 14 Jul 2008 22:34:07 +0000 (23:34 +0100)
committerSimon McVittie <smcv@carbon.pseudorandom.co.uk>
Mon, 14 Jul 2008 22:34:07 +0000 (23:34 +0100)
IkiWiki/Plugin/aggregate.pm

index f618042374acc4e561be7be446b4fd0c918db316..b3d4a5eec84d5a46f5b8b3c485cd0d73430c62a2 100644 (file)
@@ -30,7 +30,10 @@ sub getopt () { #{{{
         eval q{use Getopt::Long};
        error($@) if $@;
         Getopt::Long::Configure('pass_through');
-        GetOptions("aggregate" => \$config{aggregate});
+        GetOptions(
+               "aggregate" => \$config{aggregate},
+               "aggregateinternal!" => \$config{aggregateinternal},
+       );
 } #}}}
 
 sub checkconfig () { #{{{
@@ -595,7 +598,7 @@ sub pagefile ($) { #{{{
 } #}}}
 
 sub htmlfn ($) { #{{{
-       return shift().".".$config{htmlext};
+       return shift().".".($config{aggregateinternal} ? "_" : "").$config{htmlext};
 } #}}}
 
 my $aggregatelock;