From 5e4e43e2c73d6077f8091fe063add1ebce9335e3 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Tue, 13 Oct 2009 13:33:51 -0400 Subject: [PATCH] match_link: dynamic influence needed for page that currently has no links --- IkiWiki.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}) { -- 2.26.2