From: Platonides Date: Thu, 15 Dec 2011 21:53:02 +0000 (+0000) Subject: Follow-up r106189. The $wgUser are no longer needed. X-Git-Tag: 1.31.0-rc.0~25946 X-Git-Url: http://git.cyclocoop.org/data/%24self?a=commitdiff_plain;h=9bf2a06c7dad38f64f6f54d3dea29edfe6a00232;p=lhc%2Fweb%2Fwiklou.git Follow-up r106189. The $wgUser are no longer needed. --- diff --git a/includes/FeedUtils.php b/includes/FeedUtils.php index 77be12b20f..8df4745031 100644 --- a/includes/FeedUtils.php +++ b/includes/FeedUtils.php @@ -53,8 +53,6 @@ class FeedUtils { * @return String */ public static function formatDiff( $row ) { - global $wgUser; - $titleObj = Title::makeTitle( $row->rc_namespace, $row->rc_title ); $timestamp = wfTimestamp( TS_MW, $row->rc_timestamp ); $actiontext = ''; @@ -85,7 +83,7 @@ class FeedUtils { * @return String */ public static function formatDiffRow( $title, $oldid, $newid, $timestamp, $comment, $actiontext='' ) { - global $wgFeedDiffCutoff, $wgLang, $wgUser; + global $wgFeedDiffCutoff, $wgLang; wfProfileIn( __METHOD__ ); # log enties @@ -95,9 +93,9 @@ class FeedUtils { $actiontext, Linker::formatComment( $comment ) ) ) ) . "

\n"; - //NOTE: Check permissions for anonymous users, not current user. - // No "privileged" version should end up in the cache. - // Most feed readers will not log in anway. + // NOTE: Check permissions for anonymous users, not current user. + // No "privileged" version should end up in the cache. + // Most feed readers will not log in anway. $anon = new User(); $accErrors = $title->getUserPermissionsErrors( 'read', $anon, true );