* aggregate: Only save state if it was already loaded.
[ikiwiki.git] / IkiWiki / Plugin / aggregate.pm
index 503f23ae49e2206e30341fdc2c44c4f2333c3228..21c83e34a6f3fa6ddee43fc127e582ab037e7abb 100644 (file)
@@ -165,6 +165,7 @@ sub loadstate () { #{{{
 } #}}}
 
 sub savestate () { #{{{
+       return unless $state_loaded;
        eval q{use HTML::Entities};
        error($@) if $@;
        my $newfile="$config{wikistatedir}/aggregate.new";