Much, much easier to call Linker::link() statically instead of grabbing a Skin from...
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Thu, 30 Jun 2011 14:53:37 +0000 (14:53 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Thu, 30 Jun 2011 14:53:37 +0000 (14:53 +0000)
includes/User.php

index fdf2688..4284550 100644 (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;
                }