Delete hooks are passed deleted internal pages.
authorJoey Hess <joey@kitenet.net>
Fri, 7 May 2010 03:25:27 +0000 (23:25 -0400)
committerJoey Hess <joey@kitenet.net>
Fri, 7 May 2010 03:25:27 +0000 (23:25 -0400)
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.

IkiWiki/Render.pm
debian/changelog

index b0bd8dee08f1f605f80526a5c72b71fa08928f27..2bf2e336bb021d11f0cfce1970380f264f06d415 100644 (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) });
index 10a4912aff954e7e91e4b9f9718310a23f410bd4..31d64e2372b24854a3837cd47ced8cecfb529ada 100644 (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