dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
756f1f6
)
Do not include RC_EXTERNAL in number active users on Special:Statistics
author
Brian Wolff
<bawolff+wn@gmail.com>
Tue, 26 Sep 2017 21:40:04 +0000
(21:40 +0000)
committer
Legoktm
<legoktm@member.fsf.org>
Fri, 29 Sep 2017 05:09:29 +0000
(
05:09
+0000)
We already exclude external (mostly Wikidata) actions from counting on
Special:ActiveUsers as of
56524c05
. Should be consistent.
Change-Id: Ib69a614a65246a0f4f47365751f9bef130f47475
includes/deferred/SiteStatsUpdate.php
patch
|
blob
|
history
diff --git
a/includes/deferred/SiteStatsUpdate.php
b/includes/deferred/SiteStatsUpdate.php
index
2f074ba
..
44876a6
100644
(file)
--- a/
includes/deferred/SiteStatsUpdate.php
+++ b/
includes/deferred/SiteStatsUpdate.php
@@
-149,6
+149,7
@@
class SiteStatsUpdate implements DeferrableUpdate, MergeableUpdate {
'recentchanges',
'COUNT( DISTINCT rc_user_text )',
[
+ 'rc_type != ' . $dbr->addQuotes( RC_EXTERNAL ), // Exclude external (Wikidata)
'rc_user != 0',
'rc_bot' => 0,
'rc_log_type != ' . $dbr->addQuotes( 'newusers' ) . ' OR rc_log_type IS NULL',