From 76e941a480bd0a3216a840d578a495f37643fe11 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sat, 5 Jan 2008 01:26:09 -0500 Subject: [PATCH] * aggregate: Only save state if it was already loaded. --- IkiWiki/Plugin/aggregate.pm | 1 + debian/changelog | 1 + 2 files changed, 2 insertions(+) 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 -- 2.39.5