X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;ds=sidebyside;f=maintenance%2FmigrateFileRepoLayout.php;h=f771fff73d14bf9c55174a566f0492cd115c1506;hb=46aa2eb54f6172b6fca40aa416da1a249a730426;hp=bd73f8b5752bd2c823c82ed13b45d3c2c3c4edd4;hpb=96906168cac0e9a7748511b48c369cf22c8406d5;p=lhc%2Fweb%2Fwiklou.git 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" );