diff options
author | Joey Hess <joey@gnu.kitenet.net> | 2009-10-06 19:24:17 -0400 |
---|---|---|
committer | Joey Hess <joey@gnu.kitenet.net> | 2009-10-06 19:28:52 -0400 |
commit | a5d825f28632655b608564893428ef9142dddb04 (patch) | |
tree | f629c2b1220c9ae25314f67ff11e1dc62c7918d6 /IkiWiki/Plugin/linkmap.pm | |
parent | 7a8b492bcce45123cef45ebe6f97cd70b38b9db7 (diff) | |
download | ikiwiki-a5d825f28632655b608564893428ef9142dddb04.tar ikiwiki-a5d825f28632655b608564893428ef9142dddb04.tar.gz |
linkmap: does need presence deps
Otherwise, removal of a page with no links will not be noticed,
since no links will change.
Diffstat (limited to 'IkiWiki/Plugin/linkmap.pm')
-rw-r--r-- | IkiWiki/Plugin/linkmap.pm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/IkiWiki/Plugin/linkmap.pm b/IkiWiki/Plugin/linkmap.pm index b8b4cf40d..d7ba68da9 100644 --- a/IkiWiki/Plugin/linkmap.pm +++ b/IkiWiki/Plugin/linkmap.pm @@ -28,8 +28,9 @@ sub preprocess (@) { $params{pages}="*" unless defined $params{pages}; - # Needs to update whenever a relevant page's links change. - add_depends($params{page}, $params{pages}, links => 1); + # Needs to update whenever a relevant page is added, or removed, or + # its links change. + add_depends($params{page}, $params{pages}, presence => 1, links => 1); # Can't just return the linkmap here, since the htmlscrubber # scrubs out all <object> tags (with good reason!) |