From: Siebrand Mazeland Date: Wed, 14 Dec 2011 13:01:27 +0000 (+0000) Subject: Remove users of deprecated User::getSkin(). X-Git-Tag: 1.31.0-rc.0~25969 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=d093043131870184993a6c5c9174b43fc122ed45;p=lhc%2Fweb%2Fwiklou.git Remove users of deprecated User::getSkin(). --- diff --git a/includes/FeedUtils.php b/includes/FeedUtils.php index 1af6f1bde3..77be12b20f 100644 --- a/includes/FeedUtils.php +++ b/includes/FeedUtils.php @@ -63,7 +63,7 @@ class FeedUtils { $actiontext = wfMsgHtml('rev-deleted-event'); } else { $actiontext = LogPage::actionText( $row->rc_log_type, $row->rc_log_action, - $titleObj, $wgUser->getSkin(), LogPage::extractParams($row->rc_params,true,true) ); + $titleObj, RequestContext::getMain()->getSkin(), LogPage::extractParams($row->rc_params,true,true) ); } } return self::formatDiffRow( $titleObj, @@ -88,13 +88,12 @@ class FeedUtils { global $wgFeedDiffCutoff, $wgLang, $wgUser; wfProfileIn( __METHOD__ ); - $skin = $wgUser->getSkin(); # log enties $completeText = '

' . implode( ' ', array_filter( array( $actiontext, - $skin->formatComment( $comment ) ) ) ) . "

\n"; + Linker::formatComment( $comment ) ) ) ) . "

\n"; //NOTE: Check permissions for anonymous users, not current user. // No "privileged" version should end up in the cache.