From: Joey Hess Date: Mon, 30 Nov 2009 23:15:33 +0000 (-0500) Subject: inline: Avoid using %links to test for page existence X-Git-Tag: 3.20091202~18 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c5b554b9b23f7314f616746197a6c015f3c4aa49;p=ikiwiki.git inline: Avoid using %links to test for page existence %links is populated even for just-deleted pages, so %pagesources should be used for such tests instead. --- diff --git a/IkiWiki/Plugin/inline.pm b/IkiWiki/Plugin/inline.pm index 29729a414..93dc0149e 100644 --- a/IkiWiki/Plugin/inline.pm +++ b/IkiWiki/Plugin/inline.pm @@ -359,7 +359,7 @@ sub preprocess_inline (@) { if ($config{discussion}) { if ($page !~ /.*\/\Q$config{discussionpage}\E$/ && (length $config{cgiurl} || - exists $links{$page."/".$config{discussionpage}})) { + exists $pagesources{$page."/".$config{discussionpage}})) { $template->param(have_actions => 1); $template->param(discussionlink => htmllink($page,