From: Ilmari Karonen Date: Tue, 7 Aug 2007 16:36:49 +0000 (+0000) Subject: rm redundant call to Title::newFromText() X-Git-Tag: 1.31.0-rc.0~51838 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=afb6445a39f708a9f466db20a7b50f5f22451626;p=lhc%2Fweb%2Fwiklou.git rm redundant call to Title::newFromText() --- diff --git a/includes/Linker.php b/includes/Linker.php index f6bcf7f9a8..e48bedfb07 100644 --- a/includes/Linker.php +++ b/includes/Linker.php @@ -102,7 +102,7 @@ class Linker { wfProfileIn( 'Linker::makeLink' ); $nt = Title::newFromText( $title ); if ($nt) { - $result = $this->makeLinkObj( Title::newFromText( $title ), $text, $query, $trail ); + $result = $this->makeLinkObj( $nt, $text, $query, $trail ); } else { wfDebug( 'Invalid title passed to Linker::makeLink(): "'.$title."\"\n" ); $result = $text == "" ? $title : $text;