summaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/Plugin/aggregate.pm6
1 files changed, 3 insertions, 3 deletions
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 (@) { #{{{