]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/aggregate.pm
formatting
[git.ikiwiki.info.git] / IkiWiki / Plugin / aggregate.pm
index 0869d6d8fdbe5da54e1a4fa1fa071df70346b3bd..68ff6a6167499730ec964207f33735c770d8f565 100644 (file)
@@ -51,10 +51,11 @@ sub checkconfig () { #{{{
 
 sub needsbuild (@) { #{{{
        my $needsbuild=shift;
 
 sub needsbuild (@) { #{{{
        my $needsbuild=shift;
+       
+       loadstate(); # if not already loaded
 
        foreach my $page (keys %pagestate) {
                if (grep { $_ eq $pagesources{$page} } @$needsbuild) {
 
        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);
                        # Mark all feeds originating on this page as removable;
                        # preprocess will unmark those that still exist.
                        remove_feeds($page);