Remove users of deprecated User::getSkin().

This commit is contained in:
Siebrand Mazeland 2011-12-14 13:01:27 +00:00
parent 28cec38f86
commit d093043131

View file

@ -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 = '<p>' . implode( ' ',
array_filter(
array(
$actiontext,
$skin->formatComment( $comment ) ) ) ) . "</p>\n";
Linker::formatComment( $comment ) ) ) ) . "</p>\n";
//NOTE: Check permissions for anonymous users, not current user.
// No "privileged" version should end up in the cache.