Delete hooks are passed deleted internal pages.

Necessary so search can remove its indexes for internal pages.
But also, it seems it was an omission not to pass the deleted
pages before.
master
Joey Hess 2010-05-06 23:25:27 -04:00
parent ea4967f184
commit 14826ad927
2 changed files with 2 additions and 1 deletions

View File

@ -801,7 +801,7 @@ sub refresh () {
remove_unrendered();
if (@$del) {
run_hooks(delete => sub { shift->(@$del) });
run_hooks(delete => sub { shift->(@$del, @$internal_del) });
}
if (%rendered) {
run_hooks(change => sub { shift->(keys %rendered) });

1
debian/changelog vendored
View File

@ -9,6 +9,7 @@ ikiwiki (3.20100505) UNRELEASED; urgency=low
and typical use.
* inline: Call indexhtml when inlining internal pages, so their
text can be indexed for searching.
* Delete hooks are passed deleted internal pages.
-- Joey Hess <joeyh@debian.org> Wed, 05 May 2010 18:07:29 -0400