Much, much easier to call Linker::link() statically instead of grabbing a Skin from $wgUser
This commit is contained in:
parent
b9f3c44797
commit
c758679f6d
1 changed files with 1 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue