From 9bf2a06c7dad38f64f6f54d3dea29edfe6a00232 Mon Sep 17 00:00:00 2001 From: Platonides Date: Thu, 15 Dec 2011 21:53:02 +0000 Subject: [PATCH] Follow-up r106189. The $wgUser are no longer needed. --- includes/FeedUtils.php | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) 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 ); -- 2.20.1