r23402 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r23401‎ | r23402 | r23403 >
Date:20:30, 25 June 2007
Author:robchurch
Status:old
Tags:
Comment:
DISPLAYTITLE: Fix comparison, damn fragments...check titles are equal and that there isn't a fragment in the desired title
Modified paths:
  • /trunk/phase3/includes/CoreParserFunctions.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/CoreParserFunctions.php
@@ -109,7 +109,7 @@
110110 static function displaytitle( $parser, $text = '' ) {
111111 $text = trim( $text );
112112 $title = Title::newFromText( $text );
113 - if( $title instanceof Title && $title->equals( $parser->mTitle ) )
 113+ if( $title instanceof Title && $title->getFragment() == '' && $title->equals( $parser->mTitle ) )
114114 $parser->mOutput->setDisplayTitle( $text );
115115 return '';
116116 }

Follow-up revisions

RevisionCommit summaryAuthorDate
r23407Merged revisions 23203-23405 via svnmerge from...david23:00, 25 June 2007

Status & tagging log