From: Max Semenik Date: Fri, 26 Jul 2019 01:44:28 +0000 (-0700) Subject: Fix exception when viewing special pages with relative related titles X-Git-Tag: 1.34.0-rc.0~866^2 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/pie.php?a=commitdiff_plain;h=e4bc582217224c848923d6a8c1e3786ef08b535f;p=lhc%2Fweb%2Fwiklou.git Fix exception when viewing special pages with relative related titles Bug: T227817 Change-Id: I17e4acae81792c6d13c706741ec2a953300ac004 --- diff --git a/includes/skins/Skin.php b/includes/skins/Skin.php index 918c761bca..bbad648b0e 100644 --- a/includes/skins/Skin.php +++ b/includes/skins/Skin.php @@ -275,7 +275,7 @@ abstract class Skin extends ContextSource { // Check, if the page can hold some kind of content, otherwise do nothing $title = $this->getRelevantTitle(); - if ( $title->canExist() ) { + if ( $title->canExist() && $title->canHaveTalkPage() ) { if ( $title->isTalkPage() ) { $titles[] = $title->getSubjectPage(); } else {