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.
master
Joey Hess 2009-11-30 18:15:33 -05:00
parent e104499f28
commit c5b554b9b2
1 changed files with 1 additions and 1 deletions

View File

@ -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,