dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Change WikiImporter to now requires the second parameter to be an instance of the...
[lhc/web/wiklou.git]
/
maintenance
/
migrateFileRepoLayout.php
diff --git
a/maintenance/migrateFileRepoLayout.php
b/maintenance/migrateFileRepoLayout.php
index
bd73f8b
..
f771fff
100644
(file)
--- 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() ) {
$status = $be->prepare( [
'dir' => dirname( $dpath ), 'bypassReadOnly' => 1 ] );
if ( !$status->isOK() ) {
- $this->error( print_r( $status->getErrors
Array
(), true ) );
+ $this->error( print_r( $status->getErrors(), true ) );
}
$batch[] = [ 'op' => 'copy', 'overwrite' => 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() ) {
$status = $be->prepare( [
'dir' => dirname( $dpath ), 'bypassReadOnly' => 1 ] );
if ( !$status->isOK() ) {
- $this->error( print_r( $status->getErrors
Array
(), true ) );
+ $this->error( print_r( $status->getErrors(), true ) );
}
$batch[] = [ 'op' => 'copy', 'overwrite' => true,
'src' => $spath, 'dst' => $dpath, 'img' => $ofile->getArchiveName() ];
}
$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() ) {
$status = $be->prepare( [
'dir' => dirname( $dpath ), 'bypassReadOnly' => 1 ] );
if ( !$status->isOK() ) {
- $this->error( print_r( $status->getErrors
Array
(), true ) );
+ $this->error( print_r( $status->getErrors(), true ) );
}
$batch[] = [ 'op' => 'copy', 'src' => $spath, 'dst' => $dpath,
}
$batch[] = [ 'op' => 'copy', 'src' => $spath, 'dst' => $dpath,
@@
-227,7
+227,7
@@
class MigrateFileRepoLayout extends Maintenance {
$status = $be->doOperations( $ops, [ 'bypassReadOnly' => 1 ] );
if ( !$status->isOK() ) {
$status = $be->doOperations( $ops, [ 'bypassReadOnly' => 1 ] );
if ( !$status->isOK() ) {
- $this->output( print_r( $status->getErrors
Array
(), true ) );
+ $this->output( print_r( $status->getErrors(), true ) );
}
$this->output( "Batch done\n\n" );
}
$this->output( "Batch done\n\n" );