r106189 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r106188‎ | r106189 | r106190 >
Date:13:01, 14 December 2011
Author:siebrand
Status:ok
Tags:
Comment:
Remove users of deprecated User::getSkin().
Modified paths:
  • /trunk/phase3/includes/FeedUtils.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/FeedUtils.php
@@ -63,7 +63,7 @@
6464 $actiontext = wfMsgHtml('rev-deleted-event');
6565 } else {
6666 $actiontext = LogPage::actionText( $row->rc_log_type, $row->rc_log_action,
67 - $titleObj, $wgUser->getSkin(), LogPage::extractParams($row->rc_params,true,true) );
 67+ $titleObj, RequestContext::getMain()->getSkin(), LogPage::extractParams($row->rc_params,true,true) );
6868 }
6969 }
7070 return self::formatDiffRow( $titleObj,
@@ -88,13 +88,12 @@
8989 global $wgFeedDiffCutoff, $wgLang, $wgUser;
9090 wfProfileIn( __METHOD__ );
9191
92 - $skin = $wgUser->getSkin();
9392 # log enties
9493 $completeText = '<p>' . implode( ' ',
9594 array_filter(
9695 array(
9796 $actiontext,
98 - $skin->formatComment( $comment ) ) ) ) . "</p>\n";
 97+ Linker::formatComment( $comment ) ) ) ) . "</p>\n";
9998
10099 //NOTE: Check permissions for anonymous users, not current user.
101100 // No "privileged" version should end up in the cache.

Follow-up revisions

RevisionCommit summaryAuthorDate
r106379Follow-up r106189. The $wgUser are no longer needed.platonides21:53, 15 December 2011

Status & tagging log