DISPLAYTITLE: Fix comparison, damn fragments...check titles are equal and that there...
authorRob Church <robchurch@users.mediawiki.org>
Mon, 25 Jun 2007 20:30:25 +0000 (20:30 +0000)
committerRob Church <robchurch@users.mediawiki.org>
Mon, 25 Jun 2007 20:30:25 +0000 (20:30 +0000)
includes/CoreParserFunctions.php

index 6cf35f9..76f86e1 100644 (file)
@@ -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 '';
        }