diff options
author | Joey Hess <joey@kitenet.net> | 2010-04-21 15:59:39 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2010-04-21 15:59:39 -0400 |
commit | a71b92ed5c5572a1384367f8a90e1fc489b3c660 (patch) | |
tree | 871417df61bd5a2db943ec011f75c0a8f2b8f7bc /IkiWiki/Render.pm | |
parent | 2a0e3787a056b160843eca263c82d591c7161988 (diff) | |
download | ikiwiki-a71b92ed5c5572a1384367f8a90e1fc489b3c660.tar ikiwiki-a71b92ed5c5572a1384367f8a90e1fc489b3c660.tar.gz |
remember autofiles always
This fixes the problem that it did not remember if an autofile is deleted,
unless a plugin happened to register the autofile at the same time.
With the new code, we just never recreate an autofile more than once.
Only downside is that the list of autofiles is never pruned either.
And I don't really see a way to prune it.
Diffstat (limited to 'IkiWiki/Render.pm')
-rw-r--r-- | IkiWiki/Render.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/IkiWiki/Render.pm b/IkiWiki/Render.pm index 09c9121f3..b3afabf32 100644 --- a/IkiWiki/Render.pm +++ b/IkiWiki/Render.pm @@ -692,7 +692,7 @@ sub gen_autofile ($$$) { } if ((!defined $file) || - (exists $wikistate{$autofiles{$autofile}{plugin}}{deleted_autofile}{$autofile})) { + (exists $wikistate{$autofiles{$autofile}{plugin}}{autofile}{$autofile})) { return; } @@ -702,11 +702,11 @@ sub gen_autofile ($$$) { } if (grep { $_ eq $autofile } @$del) { - $wikistate{$autofiles{$autofile}{plugin}}{deleted_autofile}{$autofile}=1; return; } $autofiles{$autofile}{generator}->(); + $wikistate{$autofiles{$autofile}{plugin}}{autofile}{$autofile}=1; $pages->{$page}=1; return 1; } |