summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2009-10-13 13:33:51 -0400
committerJoey Hess <joey@gnu.kitenet.net>2009-10-13 13:33:51 -0400
commit5e4e43e2c73d6077f8091fe063add1ebce9335e3 (patch)
treeb104def869131ab42b8d207270b9f689a5cae59f
parent28c4caea59543b6d8fd0c62ff5a60aff67a9bba7 (diff)
match_link: dynamic influence needed for page that currently has no links
-rw-r--r--IkiWiki.pm2
1 files changed, 1 insertions, 1 deletions
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}) {