From: Alexandre Emsenhuber Date: Thu, 30 Jun 2011 14:53:37 +0000 (+0000) Subject: Much, much easier to call Linker::link() statically instead of grabbing a Skin from... X-Git-Tag: 1.31.0-rc.0~29161 X-Git-Url: http://git.cyclocoop.org/%7B%7B%20url_for%28%27admin_vote_add%27%29%20%7D%7D?a=commitdiff_plain;h=c758679f6da07e2d00d009c1be62bb02ddb1d01f;p=lhc%2Fweb%2Fwiklou.git Much, much easier to call Linker::link() statically instead of grabbing a Skin from $wgUser --- diff --git a/includes/User.php b/includes/User.php index fdf2688556..4284550c0a 100644 --- a/includes/User.php +++ b/includes/User.php @@ -3523,9 +3523,7 @@ class User { } $title = self::getGroupPage( $group ); if( $title ) { - global $wgUser; - $sk = $wgUser->getSkin(); - return $sk->link( $title, htmlspecialchars( $text ) ); + return Linker::link( $title, htmlspecialchars( $text ) ); } else { return $text; }