]> sipb.mit.edu Git - ikiwiki.git/commitdiff
call aggregate checkconfig last
authorJoey Hess <joey@kitenet.net>
Mon, 21 Mar 2011 18:32:46 +0000 (14:32 -0400)
committerJoey Hess <joey@kitenet.net>
Mon, 21 Mar 2011 18:32:46 +0000 (14:32 -0400)
Since the plugin abuses the checkconfig hook to launch aggregation when in
--aggregate mode, it should give other plugins that have checkconfig hooks
a chance to run before they are possibly used in rendering the aggregated
content.

IkiWiki/Plugin/aggregate.pm

index 5e967356025ce0e87bcb4444f7b39cf24dbaaa8c..614c3fa5510ef09f10750a2639b6a4ad03aa6731 100644 (file)
@@ -16,7 +16,8 @@ my %guids;
 sub import {
        hook(type => "getopt", id => "aggregate", call => \&getopt);
        hook(type => "getsetup", id => "aggregate", call => \&getsetup);
-       hook(type => "checkconfig", id => "aggregate", call => \&checkconfig);
+       hook(type => "checkconfig", id => "aggregate", call => \&checkconfig,
+               last => 1);
        hook(type => "needsbuild", id => "aggregate", call => \&needsbuild);
        hook(type => "preprocess", id => "aggregate", call => \&preprocess);
         hook(type => "delete", id => "aggregate", call => \&delete);