Index: trunk/phase3/includes/Credits.php |
— | — | @@ -162,13 +162,13 @@ |
163 | 163 | * @return String: html |
164 | 164 | */ |
165 | 165 | protected static function link( User $user ) { |
166 | | - global $wgHiddenPrefs; |
| 166 | + global $wgUser, $wgHiddenPrefs; |
167 | 167 | if( !in_array( 'realname', $wgHiddenPrefs ) ) |
168 | 168 | $real = $user->getRealName(); |
169 | 169 | else |
170 | 170 | $real = false; |
171 | 171 | |
172 | | - $skin = $user->getSkin(); |
| 172 | + $skin = $wgUser->getSkin(); |
173 | 173 | $page = $user->getUserPage(); |
174 | 174 | |
175 | 175 | return $skin->link( $page, htmlspecialchars( $real ? $real : $user->getName() ) ); |
— | — | @@ -203,4 +203,4 @@ |
204 | 204 | $skin = $wgUser->getSkin(); |
205 | 205 | return $skin->link( $article->getTitle(), wfMsgHtml( 'others' ), array(), array( 'action' => 'credits' ), array( 'known' ) ); |
206 | 206 | } |
207 | | -} |
\ No newline at end of file |
| 207 | +} |