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
parent
e104499f28
commit
c5b554b9b2
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue