Attempt to count actual watchers in the info action
authorFederico Leva <federicoleva@tiscali.it>
Mon, 2 Mar 2015 16:16:58 +0000 (17:16 +0100)
committerFederico Leva <federicoleva@tiscali.it>
Wed, 1 Jul 2015 10:39:27 +0000 (12:39 +0200)
commit09a21c4af8dd53644edd31fe731638b60f91594a
tree8042ee951a40e6e6c8cb393a11a8968242e6bee4
parentb42a5e851c3bf888193fc6464fd00ba39786e46f
Attempt to count actual watchers in the info action

Proposed threshold to be considered an "active" watcher:
two times $wgRCMaxAge, configurable with the new
configuration setting $wgWatchersMaxAge.

The information is not displayed when the number given would
be 1 or 0, so that the number (or absence thereof) doesn't
"disclose" that the page is (potentially) unpatrolled or
completely unwatched and hence easier to vandalise.
Configurable with $wgUnwatchedPageSecret too.
Also, we don't display this row at all when the user doesn't
have the right to see the count of total watchers.

Bug: T51506
Change-Id: I10d294a339b131eee94839ed7088ab20d746d881
RELEASE-NOTES-1.26
includes/DefaultSettings.php
includes/actions/InfoAction.php
languages/i18n/en.json
languages/i18n/qqq.json