Index: trunk/extensions/WikimediaIncubator/SpecialViewUserLang.php |
— | — | @@ -67,8 +67,7 @@ |
68 | 68 | * @param $target Mixed: user whose language and test wiki we're looking up |
69 | 69 | */ |
70 | 70 | function showInfo( $target ) { |
71 | | - global $wgOut, $wmincPref, $wmincProjectSite, $wgUser; |
72 | | - $sk = $wgUser->getSkin(); |
| 71 | + global $wgOut, $wmincPref, $wmincProjectSite; |
73 | 72 | $user = User::newFromName( $target ); |
74 | 73 | $name = $user->getName(); |
75 | 74 | $id = $user->getId(); |
— | — | @@ -78,11 +77,11 @@ |
79 | 78 | $wgOut->addHTML( Xml::span( wfMsg( 'wminc-userdoesnotexist', $target ), 'error' ) ); |
80 | 79 | } else { |
81 | 80 | $userproject = $user->getOption( $wmincPref . '-project' ); |
82 | | - $userproject = ($userproject ? $userproject : 'none'); |
| 81 | + $userproject = ( $userproject ? $userproject : 'none' ); |
83 | 82 | $usercode = $user->getOption( $wmincPref . '-code' ); |
84 | 83 | $prefix = IncubatorTest::displayPrefix( $userproject, $usercode ); |
85 | 84 | if ( IncubatorTest::isContentProject( $userproject ) ) { |
86 | | - $testwiki = $sk->link( Title::newFromText( $prefix ) ); |
| 85 | + $testwiki = Linker::link( Title::newFromText( $prefix ) ); |
87 | 86 | } elseif ( $prefix == $wmincProjectSite['short'] ) { |
88 | 87 | $testwiki = htmlspecialchars( $wmincProjectSite['name'] ); |
89 | 88 | } else { |
— | — | @@ -91,7 +90,7 @@ |
92 | 91 | $wgOut->addHtml( |
93 | 92 | Xml::openElement( 'ul' ) . |
94 | 93 | '<li>' . wfMsgHtml( 'username' ) . ' ' . |
95 | | - $sk->userLink( $id, $name ) . $sk->userToolLinks( $id, $name, true ) . '</li>' . |
| 94 | + Linker::userLink( $id, $name ) . Linker::userToolLinks( $id, $name, true ) . '</li>' . |
96 | 95 | '<li>' . wfMsgHtml( 'loginlanguagelabel', $langNames[$user->getOption( 'language' )] . |
97 | 96 | ' (' . $user->getOption( 'language' ) . ')' ) . '</li>' . |
98 | 97 | '<li>' . wfMsgHtml( 'wminc-testwiki' ) . ' ' . $testwiki . '</li>' . |