X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FupdateArticleCount.php;h=213195df0f42fb8161b363607f4d8e46e8a60ea3;hb=2f28050b6b866f684da92c1832c0a3938b59ef0b;hp=baba6c8d12bed7c34c043bf2e48296391052837f;hpb=920c06e42c307fcaea47d9b65e09303aded2d1c9;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" );