r24656 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r24655‎ | r24656 | r24657 >
Date:16:36, 7 August 2007
Author:vyznev
Status:old
Tags:
Comment:
rm redundant call to Title::newFromText()
Modified paths:
  • /trunk/phase3/includes/Linker.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Linker.php
@@ -102,7 +102,7 @@
103103 wfProfileIn( 'Linker::makeLink' );
104104 $nt = Title::newFromText( $title );
105105 if ($nt) {
106 - $result = $this->makeLinkObj( Title::newFromText( $title ), $text, $query, $trail );
 106+ $result = $this->makeLinkObj( $nt, $text, $query, $trail );
107107 } else {
108108 wfDebug( 'Invalid title passed to Linker::makeLink(): "'.$title."\"\n" );
109109 $result = $text == "" ? $title : $text;

Follow-up revisions

RevisionCommit summaryAuthorDate
r24705Merged revisions 24632-24693 via svnmerge from...david19:15, 9 August 2007

Status & tagging log