From afb6445a39f708a9f466db20a7b50f5f22451626 Mon Sep 17 00:00:00 2001 From: Ilmari Karonen Date: Tue, 7 Aug 2007 16:36:49 +0000 Subject: [PATCH] rm redundant call to Title::newFromText() --- includes/Linker.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.20.1