From: Aaron Schulz Date: Thu, 22 Sep 2016 00:28:08 +0000 (-0700) Subject: Make MigrateFileRepoLayout use getErrors() X-Git-Tag: 1.31.0-rc.0~5377^2 X-Git-Url: http://git.cyclocoop.org/%40spipnet%40?a=commitdiff_plain;h=e1428ac14dcebede894078a0acbd4ef8f012674a;p=lhc%2Fweb%2Fwiklou.git Make MigrateFileRepoLayout use getErrors() Change-Id: I5281c4ded9eba42eccaf5a67e809a0175fa057ce --- diff --git a/maintenance/migrateFileRepoLayout.php b/maintenance/migrateFileRepoLayout.php index bd73f8b575..f771fff73d 100644 --- a/maintenance/migrateFileRepoLayout.php +++ b/maintenance/migrateFileRepoLayout.php @@ -104,7 +104,7 @@ class MigrateFileRepoLayout extends Maintenance { $status = $be->prepare( [ 'dir' => dirname( $dpath ), 'bypassReadOnly' => 1 ] ); if ( !$status->isOK() ) { - $this->error( print_r( $status->getErrorsArray(), true ) ); + $this->error( print_r( $status->getErrors(), true ) ); } $batch[] = [ 'op' => 'copy', 'overwrite' => true, @@ -137,7 +137,7 @@ class MigrateFileRepoLayout extends Maintenance { $status = $be->prepare( [ 'dir' => dirname( $dpath ), 'bypassReadOnly' => 1 ] ); if ( !$status->isOK() ) { - $this->error( print_r( $status->getErrorsArray(), true ) ); + $this->error( print_r( $status->getErrors(), true ) ); } $batch[] = [ 'op' => 'copy', 'overwrite' => true, 'src' => $spath, 'dst' => $dpath, 'img' => $ofile->getArchiveName() ]; @@ -195,7 +195,7 @@ class MigrateFileRepoLayout extends Maintenance { $status = $be->prepare( [ 'dir' => dirname( $dpath ), 'bypassReadOnly' => 1 ] ); if ( !$status->isOK() ) { - $this->error( print_r( $status->getErrorsArray(), true ) ); + $this->error( print_r( $status->getErrors(), true ) ); } $batch[] = [ 'op' => 'copy', 'src' => $spath, 'dst' => $dpath, @@ -227,7 +227,7 @@ class MigrateFileRepoLayout extends Maintenance { $status = $be->doOperations( $ops, [ 'bypassReadOnly' => 1 ] ); if ( !$status->isOK() ) { - $this->output( print_r( $status->getErrorsArray(), true ) ); + $this->output( print_r( $status->getErrors(), true ) ); } $this->output( "Batch done\n\n" );