Page MenuHomePhabricator

Don't report views count if $wgDisableCounters=true
Closed, ResolvedPublic

Description

if $wgDisableCounters=true, then
api.php?action=query&meta=siteinfo&siprop=statistics should not show
"views",

<statistics pages="432" articles="247" views="317460" edits="4051"
images="0" users="172" activeusers="4" admins="1" jobs="0" />

as that data is invalid, and indeed, SpecialStatistics.php
doesn't anymore, so you should follow its lead.

The Sysop has made a decision to give up counting views, so that data is stale/invalid, and you shoud respect his decision by not reporting it.


Version: 1.14.x
Severity: trivial

Details

Reference
bz17795

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:34 PM
bzimport set Reference to bz17795.