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 );
}
$dbw->update(
'recentchanges',
- array( $updatedValues ),
- array(
+ [ $updatedValues ],
+ [
"rc_source = ''",
"rc_id BETWEEN $blockStart AND $blockEnd"
- ),
+ ],
__METHOD__
);