match_link: dynamic influence needed for page that currently has no links

master
Joey Hess 2009-10-13 13:33:51 -04:00
parent 28c4caea59
commit 5e4e43e2c7
1 changed files with 1 additions and 1 deletions

View File

@ -2168,7 +2168,7 @@ sub match_link ($$;@) {
my $from=exists $params{location} ? $params{location} : ''; my $from=exists $params{location} ? $params{location} : '';
my $links = $IkiWiki::links{$page}; my $links = $IkiWiki::links{$page};
return IkiWiki::FailReason->new("$page has no links") return IkiWiki::FailReason->new("$page has no links", "" => 1)
unless $links && @{$links}; unless $links && @{$links};
my $bestlink = IkiWiki::bestlink($from, $link); my $bestlink = IkiWiki::bestlink($from, $link);
foreach my $p (@{$links}) { foreach my $p (@{$links}) {