summaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/aggregate.pm
diff options
context:
space:
mode:
Diffstat (limited to 'IkiWiki/Plugin/aggregate.pm')
-rw-r--r--IkiWiki/Plugin/aggregate.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/aggregate.pm b/IkiWiki/Plugin/aggregate.pm
index 2e4026757..23428cb0e 100644
--- a/IkiWiki/Plugin/aggregate.pm
+++ b/IkiWiki/Plugin/aggregate.pm
@@ -35,11 +35,13 @@ sub getopt () { #{{{
} #}}}
sub checkconfig () { #{{{
- loadstate();
if ($IkiWiki::config{aggregate}) {
+ IkiWiki::lockwiki();
+ loadstate();
IkiWiki::loadindex();
aggregate();
savestate();
+ IkiWiki::unlockwiki();
}
} #}}}