Much, much easier to call Linker::link() statically instead of grabbing a Skin from $wgUser

This commit is contained in:
Alexandre Emsenhuber 2011-06-30 14:53:37 +00:00
parent b9f3c44797
commit c758679f6d

View file

@ -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;
}