diff options
author | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2007-07-26 19:41:04 +0000 |
---|---|---|
committer | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2007-07-26 19:41:04 +0000 |
commit | 72c95e8434cf4f2c96d2320eec13cbc01580cb52 (patch) | |
tree | 8bf778d8bc12139206352cd6c5ef8f3297ad8b4e /doc/bugs | |
parent | 3b316c6f93e04350e89e0cf73d923ba82f0190b3 (diff) |
* Fix re-rendering of pages when a linked to page goes away. This was broken
in version 1.50 with the addition of %destsources. Thanks, Ethan
Glasser-Camp.
Diffstat (limited to 'doc/bugs')
-rw-r--r-- | doc/bugs/discussion_removal.mdwn | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/doc/bugs/discussion_removal.mdwn b/doc/bugs/discussion_removal.mdwn index 9e08361a3..6da35f37b 100644 --- a/doc/bugs/discussion_removal.mdwn +++ b/doc/bugs/discussion_removal.mdwn @@ -13,21 +13,4 @@ Here's a patch that trawls through %destsources deleting pages when they are found to be deleted. It's a little inelegant, but it's simple and it works. --Ethan -<pre> -diff -urX ignorepats ikiwiki/IkiWiki/Render.pm ikidev/IkiWiki/Render.pm ---- ikiwiki/IkiWiki/Render.pm 2007-07-25 15:58:24.501068000 -0700 -+++ ikidev/IkiWiki/Render.pm 2007-07-25 20:08:32.966449000 -0700 -@@ -320,6 +320,11 @@ - prune($config{destdir}."/".$_) - foreach @{$oldrenderedfiles{$page}}; - delete $pagesources{$page}; -+ foreach (keys %destsources){ -+ if ($destsources{$_} == $page) { -+ delete $destsources{$_}; -+ } -+ } - } - } - -</pre> - +Thankyou for the [[patch]]! [[Done]]. --[[Joey]] |