summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2009-10-05 15:09:09 -0400
committerJoey Hess <joey@gnu.kitenet.net>2009-10-05 15:09:09 -0400
commitf41caf57eabdaa2345eba1718450af686dca3971 (patch)
treedeab4bb676c84f28b1fac2b5e33d73ef958b1a65
parent846026b20be2ab177eb58d3add468419625c3cc1 (diff)
use links dependency
-rw-r--r--IkiWiki/Plugin/brokenlinks.pm5
1 files changed, 2 insertions, 3 deletions
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) {