https://www.mediawiki.org/wiki/Special:Code/MediaWiki/106379
Revision: 106379
Author: platonides
Date: 2011-12-15 21:53:02 +0000 (Thu, 15 Dec 2011)
Log Message:
-----------
Follow-up r106189. The $wgUser are no longer needed.
Modified Paths:
--------------
trunk/phase3/includes/FeedUtils.php
Modified: trunk/phase3/includes/FeedUtils.php
===================================================================
--- trunk/phase3/includes/FeedUtils.php 2011-12-15 21:51:27 UTC (rev 106378)
+++ trunk/phase3/includes/FeedUtils.php 2011-12-15 21:53:02 UTC (rev 106379)
@@ -53,8 +53,6 @@
* @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 @@
* @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 @@
$actiontext,
Linker::formatComment( $comment ) ) ) )
. "</p>\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 );
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs