X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FupdateArticleCount.php;h=213195df0f42fb8161b363607f4d8e46e8a60ea3;hb=417a83a1a3ddf374dff5a14d8a08cd4c6099d357;hp=baba6c8d12bed7c34c043bf2e48296391052837f;hpb=4b069cd1b88877fbb253af8780e358d96ba2587c;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/updateArticleCount.php b/maintenance/updateArticleCount.php index baba6c8d12..213195df0f 100644 --- a/maintenance/updateArticleCount.php +++ b/maintenance/updateArticleCount.php @@ -46,7 +46,7 @@ class UpdateArticleCount extends Maintenance { if ( $this->hasOption( 'use-master' ) ) { $dbr = $this->getDB( DB_MASTER ); } else { - $dbr = $this->getDB( DB_SLAVE, 'vslow' ); + $dbr = $this->getDB( DB_REPLICA, 'vslow' ); } $counter = new SiteStatsInit( $dbr ); $result = $counter->articles(); @@ -57,8 +57,8 @@ class UpdateArticleCount extends Maintenance { $dbw = $this->getDB( DB_MASTER ); $dbw->update( 'site_stats', - array( 'ss_good_articles' => $result ), - array( 'ss_row_id' => 1 ), + [ 'ss_good_articles' => $result ], + [ 'ss_row_id' => 1 ], __METHOD__ ); $this->output( "done.\n" );