X-Git-Url: https://git.cyclocoop.org/%242?a=blobdiff_plain;f=maintenance%2FupdateArticleCount.php;h=dff5aec8e469e60e4cb54356bbd226409c2d9862;hb=f7429252f85c5835b291def55fc04b8196c1bb39;hp=9537a795156ccb6f2b6905434e1ce385ab4a7777;hpb=3301e78e5a2e5662952c0564f830a492743f9844;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/updateArticleCount.php b/maintenance/updateArticleCount.php index 9537a79515..dff5aec8e4 100644 --- a/maintenance/updateArticleCount.php +++ b/maintenance/updateArticleCount.php @@ -35,7 +35,7 @@ class UpdateArticleCount extends Maintenance { public function __construct() { parent::__construct(); - $this->mDescription = "Count of the number of articles and update the site statistics table"; + $this->addDescription( 'Count of the number of articles and update the site statistics table' ); $this->addOption( 'update', 'Update the site_stats table with the new count' ); $this->addOption( 'use-master', 'Count using the master database' ); } @@ -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" );