]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/aggregate.pm
* Generalised preprocesser loop protection code.
[git.ikiwiki.info.git] / IkiWiki / Plugin / aggregate.pm
index 6c9958df8c862249b1c663906e1ac06406f7fd17..33d7174f5367a394846462080bd0786840e33ad0 100644 (file)
@@ -35,14 +35,14 @@ sub getopt () { #{{{
 } #}}}
 
 sub checkconfig () { #{{{
+       IkiWiki::lockwiki();
+       loadstate();
        if ($IkiWiki::config{aggregate}) {
-               IkiWiki::lockwiki();
-               loadstate();
                IkiWiki::loadindex();
                aggregate();
                savestate();
-               IkiWiki::unlockwiki();
        }
+       IkiWiki::unlockwiki();
 } #}}}
 
 sub filter (@) { #{{{