X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/53cf5ca9a30fe856793d2a38b52c8b78b2aba17b..6fc3b624f209f71335bed9947eda956e7d118458:/IkiWiki/Plugin/aggregate.pm diff --git a/IkiWiki/Plugin/aggregate.pm b/IkiWiki/Plugin/aggregate.pm index 6c9958df8..33d7174f5 100644 --- a/IkiWiki/Plugin/aggregate.pm +++ b/IkiWiki/Plugin/aggregate.pm @@ -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 (@) { #{{{