Merge "Add attributes parameter to ShowSearchHitTitle"
[lhc/web/wiklou.git] / includes / deferred / SiteStatsUpdate.php
index 8c38d8b..44876a6 100644 (file)
@@ -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',
@@ -189,7 +190,7 @@ class SiteStatsUpdate implements DeferrableUpdate, MergeableUpdate {
        }
 
        /**
-        * @param string $sql
+        * @param string &$sql
         * @param string $field
         * @param int $delta
         */