- # Needs to update whenever a page is added or removed, so
- # register a dependency.
- IkiWiki::add_depends($params{page}, $params{pages});
-
- my %linkedto;
- foreach my $p (keys %IkiWiki::links) {
- map { $linkedto{IkiWiki::bestlink($p, $_)}=1 if length $_ }
- @{$IkiWiki::links{$p}};
- }
+ # Needs to update whenever a page is changed, added, or removed,
+ # in order to see the link changes.
+ add_depends($params{page}, $params{pages});