X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FmigrateComments.php;h=cdecab03c3fdcb9bd2d6be74d61ee8f02aa7df80;hb=e39c52c3ef11bda3a7cabd4473b85450cccff3d2;hp=c0008719500c4651e2276b6a1a5101899a8ac13a;hpb=78418f5728259c024ac3b2016e1edd0ab794c9c0;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/migrateComments.php b/maintenance/migrateComments.php index c000871950..cdecab03c3 100644 --- a/maintenance/migrateComments.php +++ b/maintenance/migrateComments.php @@ -205,7 +205,7 @@ class MigrateComments extends LoggedUpdateMaintenance { $next = "$field > $value OR $field = $value AND ($next)"; } } - $prompt = join( ' ', array_reverse( $prompt ) ); + $prompt = implode( ' ', array_reverse( $prompt ) ); $this->output( "... $prompt\n" ); wfWaitForSlaves(); } @@ -282,7 +282,6 @@ class MigrateComments extends LoggedUpdateMaintenance { // Calculate the "next" condition $next = [ $primaryKey . ' > ' . $dbw->addQuotes( $row->$primaryKey ) ]; $this->output( "... {$row->$primaryKey}\n" ); - wfWaitForSlaves(); } $this->output( @@ -291,5 +290,5 @@ class MigrateComments extends LoggedUpdateMaintenance { } } -$maintClass = "MigrateComments"; +$maintClass = MigrateComments::class; require_once RUN_MAINTENANCE_IF_MAIN;