From: Rob Church Date: Mon, 25 Jun 2007 20:30:25 +0000 (+0000) Subject: DISPLAYTITLE: Fix comparison, damn fragments...check titles are equal and that there... X-Git-Tag: 1.31.0-rc.0~52400 X-Git-Url: https://git.cyclocoop.org//%22?a=commitdiff_plain;h=2fb1477f847292b4b2069c670216d5a7797e616e;p=lhc%2Fweb%2Fwiklou.git DISPLAYTITLE: Fix comparison, damn fragments...check titles are equal and that there isn't a fragment in the desired title --- 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 ''; }