aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Render.pm
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2010-05-18 13:28:35 -0400
committerJoey Hess <joey@kitenet.net>2010-05-18 13:32:28 -0400
commit7aa209f1ce882372590ff032a1a94ad2b977544d (patch)
treee8113fc211ce92a152b96f6a3797462879ec2534 /IkiWiki/Render.pm
parent2b1bc9c7297dc4bf36f4fc91205ad13eaf1513ca (diff)
downloadikiwiki-7aa209f1ce882372590ff032a1a94ad2b977544d.tar
ikiwiki-7aa209f1ce882372590ff032a1a94ad2b977544d.tar.gz
Fix a bug that prevented matching deleted comments, and so did not update pages that had contained them.
Problem is that by the time rendering calls render_dependent, %pagesources has had deleted files removed from it. So match_comment's lookup of files in there to see if they had the _comment extension failed. I had to introduce a hash that temporarily holds filenames of deleted pages to fix this. Note that unlike comment(), internal() had avoided this pitfall by being defined to match both internal and non-internal pages.
Diffstat (limited to 'IkiWiki/Render.pm')
-rw-r--r--IkiWiki/Render.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/IkiWiki/Render.pm b/IkiWiki/Render.pm
index 833fcaaff..f9fbc801f 100644
--- a/IkiWiki/Render.pm
+++ b/IkiWiki/Render.pm
@@ -442,6 +442,7 @@ sub remove_del (@) {
}
delete $pagecase{lc $page};
+ $delpagesources{$page}=$pagesources{$page};
delete $pagesources{$page};
}
}