Index: trunk/phase3/includes/api/ApiQuerySiteinfo.php |
— | — | @@ -282,10 +282,13 @@ |
283 | 283 | } |
284 | 284 | |
285 | 285 | protected function appendStatistics( $property ) { |
| 286 | + global $wgDisableCounters; |
286 | 287 | $data = array(); |
287 | 288 | $data['pages'] = intval( SiteStats::pages() ); |
288 | 289 | $data['articles'] = intval( SiteStats::articles() ); |
289 | | - $data['views'] = intval( SiteStats::views() ); |
| 290 | + if ( !$wgDisableCounters ) { |
| 291 | + $data['views'] = intval( SiteStats::views() ); |
| 292 | + } |
290 | 293 | $data['edits'] = intval( SiteStats::edits() ); |
291 | 294 | $data['images'] = intval( SiteStats::images() ); |
292 | 295 | $data['users'] = intval( SiteStats::users() ); |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -280,6 +280,8 @@ |
281 | 281 | * (bug 13209) Added rvdiffto parameter to prop=revisions |
282 | 282 | * Manual language conversion improve: Now we can include both ";" and ":" in |
283 | 283 | conversion rules |
| 284 | +* (bug 17795) Don't report views count on meta=siteinfo if $wgDisableCounters |
| 285 | + is set |
284 | 286 | |
285 | 287 | === Languages updated in 1.15 === |
286 | 288 | |