From: Tim Starling Date: Tue, 26 May 2009 15:20:04 +0000 (+0000) Subject: Fix for r50955, don't use the skin of the target user when linking to them. X-Git-Tag: 1.31.0-rc.0~41645 X-Git-Url: http://git.cyclocoop.org/ecrire?a=commitdiff_plain;h=2fac1c7f171cae897ede0857a06256f551b0f052;p=lhc%2Fweb%2Fwiklou.git Fix for r50955, don't use the skin of the target user when linking to them. --- diff --git a/includes/Credits.php b/includes/Credits.php index 817f1794cd..ad7e029072 100644 --- a/includes/Credits.php +++ b/includes/Credits.php @@ -162,13 +162,13 @@ class Credits { * @return String: html */ protected static function link( User $user ) { - global $wgHiddenPrefs; + global $wgUser, $wgHiddenPrefs; if( !in_array( 'realname', $wgHiddenPrefs ) ) $real = $user->getRealName(); else $real = false; - $skin = $user->getSkin(); + $skin = $wgUser->getSkin(); $page = $user->getUserPage(); return $skin->link( $page, htmlspecialchars( $real ? $real : $user->getName() ) ); @@ -203,4 +203,4 @@ class Credits { $skin = $wgUser->getSkin(); return $skin->link( $article->getTitle(), wfMsgHtml( 'others' ), array(), array( 'action' => 'credits' ), array( 'known' ) ); } -} \ No newline at end of file +}