From ed4a147637cf289c1cd3d76ff652d7740b9085ae Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Fri, 1 Jul 2011 08:24:32 +0000 Subject: [PATCH] Call Linker::link() statically instead of getting a Skin object from $wgUser --- includes/WikiMap.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/includes/WikiMap.php b/includes/WikiMap.php index b7c96d6aa8..ec0a4abbad 100644 --- a/includes/WikiMap.php +++ b/includes/WikiMap.php @@ -65,9 +65,6 @@ class WikiMap { * @return String: HTML link or false if the wiki was not found */ public static function makeForeignLink( $wikiID, $page, $text=null ) { - global $wgUser; - $sk = $wgUser->getSkin(); - if ( !$text ) { $text = $page; } @@ -77,7 +74,7 @@ class WikiMap { return false; } - return $sk->makeExternalLink( $url, $text ); + return Linker::makeExternalLink( $url, $text ); } /** -- 2.20.1