]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
loadstate needs to be called even if no pages are being built
authorJoey Hess <joey@kitenet.net>
Mon, 17 Dec 2007 00:40:50 +0000 (19:40 -0500)
committerJoey Hess <joey@kitenet.net>
Mon, 17 Dec 2007 00:40:50 +0000 (19:40 -0500)
IkiWiki/Plugin/aggregate.pm

index 0869d6d8fdbe5da54e1a4fa1fa071df70346b3bd..68ff6a6167499730ec964207f33735c770d8f565 100644 (file)
@@ -51,10 +51,11 @@ sub checkconfig () { #{{{
 
 sub needsbuild (@) { #{{{
        my $needsbuild=shift;
+       
+       loadstate(); # if not already loaded
 
        foreach my $page (keys %pagestate) {
                if (grep { $_ eq $pagesources{$page} } @$needsbuild) {
-                       loadstate(); # if not already loaded
                        # Mark all feeds originating on this page as removable;
                        # preprocess will unmark those that still exist.
                        remove_feeds($page);