X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FpopulateRecentChangesSource.php;h=8a56d7d8759d971a1a5692801125170473f96926;hb=d6ba90904c15d0fd8f1b84820a7d99678a1fd025;hp=0a53dd614b8e3cfdae6a5e4924720db61044f26f;hpb=47818f1b44a3525dff1c07778aaef65d06b8ae89;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/populateRecentChangesSource.php b/maintenance/populateRecentChangesSource.php index 0a53dd614b..8a56d7d875 100644 --- a/maintenance/populateRecentChangesSource.php +++ b/maintenance/populateRecentChangesSource.php @@ -46,13 +46,13 @@ class PopulateRecentChangesSource extends LoggedUpdateMaintenance { $this->error( 'rc_source field in recentchanges table does not exist.' ); } - $start = $dbw->selectField( 'recentchanges', 'MIN(rc_id)', false, __METHOD__ ); + $start = $dbw->selectField( 'recentchanges', 'MIN(rc_id)', '', __METHOD__ ); if ( !$start ) { $this->output( "Nothing to do.\n" ); return true; } - $end = $dbw->selectField( 'recentchanges', 'MAX(rc_id)', false, __METHOD__ ); + $end = $dbw->selectField( 'recentchanges', 'MAX(rc_id)', '', __METHOD__ ); $end += $batchSize - 1; $blockStart = $start; $blockEnd = $start + $batchSize - 1; @@ -104,5 +104,5 @@ class PopulateRecentChangesSource extends LoggedUpdateMaintenance { } } -$maintClass = "PopulateRecentChangesSource"; +$maintClass = PopulateRecentChangesSource::class; require_once RUN_MAINTENANCE_IF_MAIN;