Index: trunk/phase3/includes/specials/SpecialRecentchanges.php |
— | — | @@ -210,10 +210,10 @@ |
211 | 211 | * @return String or false |
212 | 212 | */ |
213 | 213 | public function checkLastModified( $feedFormat ) { |
214 | | - global $wgUseRCPatrol, $wgOut; |
| 214 | + global $wgOut, $wgUser; |
215 | 215 | $dbr = wfGetDB( DB_SLAVE ); |
216 | 216 | $lastmod = $dbr->selectField( 'recentchanges', 'MAX(rc_timestamp)', false, __METHOD__ ); |
217 | | - if( $feedFormat || !$wgUseRCPatrol ) { |
| 217 | + if( $feedFormat || !$wgUser->useRCPatrol() ) { |
218 | 218 | if( $lastmod && $wgOut->checkLastModified( $lastmod ) ) { |
219 | 219 | # Client cache fresh and headers sent, nothing more to do. |
220 | 220 | return false; |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -113,6 +113,8 @@ |
114 | 114 | is blacklisted now gives the proper extension in the error message. |
115 | 115 | * (bug 26961) Hide anon edits in watchlist preference now actually works. |
116 | 116 | * (bug 19751) Filesystem is now checked during image undeletion |
| 117 | +* Send last modified headers for Special:Recentchanges when RC patrol is |
| 118 | + enabled, but user cannot see rc patrol links. |
117 | 119 | |
118 | 120 | === API changes in 1.18 === |
119 | 121 | * (bug 26339) Throw warning when truncating an overlarge API result |