aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2010-05-06 23:25:27 -0400
committerJoey Hess <joey@kitenet.net>2010-05-06 23:25:27 -0400
commit14826ad92792b4870108dac3c28840abe1e00428 (patch)
tree754c1a0106b53b52b304bdfec16a70333290913e
parentea4967f184bf0a27eaa2dc81da1084780756156a (diff)
downloadikiwiki-14826ad92792b4870108dac3c28840abe1e00428.tar
ikiwiki-14826ad92792b4870108dac3c28840abe1e00428.tar.gz
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.
-rw-r--r--IkiWiki/Render.pm2
-rw-r--r--debian/changelog1
2 files changed, 2 insertions, 1 deletions
diff --git a/IkiWiki/Render.pm b/IkiWiki/Render.pm
index b0bd8dee0..2bf2e336b 100644
--- a/IkiWiki/Render.pm
+++ b/IkiWiki/Render.pm
@@ -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) });
diff --git a/debian/changelog b/debian/changelog
index 10a4912af..31d64e237 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -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