X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FpopulateRecentChangesSource.php;h=05098ac0a9ca6bc7f0cb8a139b0b93f535d5d36e;hb=90f599a5a2b46794a3002ee2f2563fc456a2fddb;hp=25a51d72133d368cea727614ab4d1b80b5acef62;hpb=01da3da43d18b123fe3679a6af21f046a78180d5;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/populateRecentChangesSource.php b/maintenance/populateRecentChangesSource.php index 25a51d7213..05098ac0a9 100644 --- a/maintenance/populateRecentChangesSource.php +++ b/maintenance/populateRecentChangesSource.php @@ -32,8 +32,8 @@ require_once __DIR__ . '/Maintenance.php'; class PopulateRecentChangesSource extends LoggedUpdateMaintenance { public function __construct() { parent::__construct(); - $this->mDescription = - "Populates rc_source field of the recentchanges table with the data in rc_type."; + $this->addDescription( + 'Populates rc_source field of the recentchanges table with the data in rc_type.' ); $this->setBatchSize( 100 ); } @@ -61,11 +61,11 @@ class PopulateRecentChangesSource extends LoggedUpdateMaintenance { $dbw->update( 'recentchanges', - array( $updatedValues ), - array( + [ $updatedValues ], + [ "rc_source = ''", "rc_id BETWEEN $blockStart AND $blockEnd" - ), + ], __METHOD__ );