From 2fb1477f847292b4b2069c670216d5a7797e616e Mon Sep 17 00:00:00 2001 From: Rob Church Date: Mon, 25 Jun 2007 20:30:25 +0000 Subject: [PATCH] DISPLAYTITLE: Fix comparison, damn fragments...check titles are equal and that there isn't a fragment in the desired title --- includes/CoreParserFunctions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/CoreParserFunctions.php b/includes/CoreParserFunctions.php index 6cf35f91ab..76f86e1318 100644 --- a/includes/CoreParserFunctions.php +++ b/includes/CoreParserFunctions.php @@ -109,7 +109,7 @@ class CoreParserFunctions { static function displaytitle( $parser, $text = '' ) { $text = trim( $text ); $title = Title::newFromText( $text ); - if( $title instanceof Title && $title->equals( $parser->mTitle ) ) + if( $title instanceof Title && $title->getFragment() == '' && $title->equals( $parser->mTitle ) ) $parser->mOutput->setDisplayTitle( $text ); return ''; } -- 2.20.1