Index: trunk/phase3/includes/FeedUtils.php |
— | — | @@ -53,8 +53,6 @@ |
54 | 54 | * @return String |
55 | 55 | */ |
56 | 56 | public static function formatDiff( $row ) { |
57 | | - global $wgUser; |
58 | | - |
59 | 57 | $titleObj = Title::makeTitle( $row->rc_namespace, $row->rc_title ); |
60 | 58 | $timestamp = wfTimestamp( TS_MW, $row->rc_timestamp ); |
61 | 59 | $actiontext = ''; |
— | — | @@ -85,7 +83,7 @@ |
86 | 84 | * @return String |
87 | 85 | */ |
88 | 86 | public static function formatDiffRow( $title, $oldid, $newid, $timestamp, $comment, $actiontext='' ) { |
89 | | - global $wgFeedDiffCutoff, $wgLang, $wgUser; |
| 87 | + global $wgFeedDiffCutoff, $wgLang; |
90 | 88 | wfProfileIn( __METHOD__ ); |
91 | 89 | |
92 | 90 | # log enties |
— | — | @@ -95,9 +93,9 @@ |
96 | 94 | $actiontext, |
97 | 95 | Linker::formatComment( $comment ) ) ) ) . "</p>\n"; |
98 | 96 | |
99 | | - //NOTE: Check permissions for anonymous users, not current user. |
100 | | - // No "privileged" version should end up in the cache. |
101 | | - // Most feed readers will not log in anway. |
| 97 | + // NOTE: Check permissions for anonymous users, not current user. |
| 98 | + // No "privileged" version should end up in the cache. |
| 99 | + // Most feed readers will not log in anway. |
102 | 100 | $anon = new User(); |
103 | 101 | $accErrors = $title->getUserPermissionsErrors( 'read', $anon, true ); |
104 | 102 | |