From: Joey Hess Date: Tue, 13 Oct 2009 17:33:51 +0000 (-0400) Subject: match_link: dynamic influence needed for page that currently has no links X-Git-Tag: 3.20091017~27^2~4 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=5e4e43e2c73d6077f8091fe063add1ebce9335e3;p=ikiwiki.git match_link: dynamic influence needed for page that currently has no links --- diff --git a/IkiWiki.pm b/IkiWiki.pm index cd93fe969..2847c7e0f 100644 --- a/IkiWiki.pm +++ b/IkiWiki.pm @@ -2168,7 +2168,7 @@ sub match_link ($$;@) { my $from=exists $params{location} ? $params{location} : ''; 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}; my $bestlink = IkiWiki::bestlink($from, $link); foreach my $p (@{$links}) {