From: Joey Hess Date: Mon, 5 Oct 2009 19:09:09 +0000 (-0400) Subject: use links dependency X-Git-Tag: 3.20091017~27^2~119 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f41caf57eabdaa2345eba1718450af686dca3971;p=ikiwiki.git use links dependency --- diff --git a/IkiWiki/Plugin/brokenlinks.pm b/IkiWiki/Plugin/brokenlinks.pm index b8ed2b8de..9e65f52c6 100644 --- a/IkiWiki/Plugin/brokenlinks.pm +++ b/IkiWiki/Plugin/brokenlinks.pm @@ -23,9 +23,8 @@ sub preprocess (@) { my %params=@_; $params{pages}="*" unless defined $params{pages}; - # Needs to update whenever a page is changed, - # added or removed, in order to see the link changes. - add_depends($params{page}, $params{pages}); + # Needs to update whenever the links on a page change. + add_depends($params{page}, $params{pages}, links => 1); my @broken; foreach my $link (keys %IkiWiki::brokenlinks) {