X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FpopulateRecentChangesSource.php;h=05098ac0a9ca6bc7f0cb8a139b0b93f535d5d36e;hb=2530a4c0a151b178c008a1daf334f4d810a07b69;hp=25a51d72133d368cea727614ab4d1b80b5acef62;hpb=13e33c28983461d5b8bdc1dece0cd0a35347a261;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__ );