From: Joey Hess Date: Sat, 5 Jan 2008 06:26:09 +0000 (-0500) Subject: * aggregate: Only save state if it was already loaded. X-Git-Tag: 2.18~12 X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/commitdiff_plain/76e941a480bd0a3216a840d578a495f37643fe11 * aggregate: Only save state if it was already loaded. --- diff --git a/IkiWiki/Plugin/aggregate.pm b/IkiWiki/Plugin/aggregate.pm index 503f23ae4..21c83e34a 100644 --- a/IkiWiki/Plugin/aggregate.pm +++ b/IkiWiki/Plugin/aggregate.pm @@ -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"; diff --git a/debian/changelog b/debian/changelog index 6bb5f0076..049b78cd3 100644 --- a/debian/changelog +++ b/debian/changelog @@ -11,6 +11,7 @@ ikiwiki (2.18) UNRELEASED; urgency=low need to be able to use form values. To fix this dilemma, it's been changed to a decode_cgi_utf8, which is called on the cgi query object, before the form is set up, and decodes *all* cgi parameters. + * aggregate: Only save state if it was already loaded. -- Joey Hess Tue, 01 Jan 2008 18:46:59 -0500