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
Merge "Use BlobStore::getBlobBatch for RevisionStore::newRevisionsFromBatch"
[lhc/web/wiklou.git]
/
maintenance
/
importTextFiles.php
diff --git
a/maintenance/importTextFiles.php
b/maintenance/importTextFiles.php
index
816e745
..
0b5cdf9
100644
(file)
--- a/
maintenance/importTextFiles.php
+++ b/
maintenance/importTextFiles.php
@@
-73,10
+73,10
@@
class ImportTextFiles extends Maintenance {
$files[$filename] = file_get_contents( $filename );
}
if ( !$found ) {
$files[$filename] = file_get_contents( $filename );
}
if ( !$found ) {
- $this->
error( "Fatal error: The file '$arg' does not exist!", 1
);
+ $this->
fatalError( "Fatal error: The file '$arg' does not exist!"
);
}
}
}
}
- }
;
+ }
$count = count( $files );
$this->output( "Importing $count pages...\n" );
$count = count( $files );
$this->output( "Importing $count pages...\n" );
@@
-88,7
+88,7
@@
class ImportTextFiles extends Maintenance {
}
if ( !$user ) {
}
if ( !$user ) {
- $this->
error( "Invalid username\n", true
);
+ $this->
fatalError( "Invalid username\n"
);
}
if ( $user->isAnon() ) {
$user->addToDatabase();
}
if ( $user->isAnon() ) {
$user->addToDatabase();
@@
-199,10
+199,10
@@
class ImportTextFiles extends Maintenance {
$this->output( "Done! $successCount succeeded, $skipCount skipped.\n" );
if ( $exit ) {
$this->output( "Done! $successCount succeeded, $skipCount skipped.\n" );
if ( $exit ) {
- $this->
e
rror( "Import failed with $failCount failed pages.\n", $exit );
+ $this->
fatalE
rror( "Import failed with $failCount failed pages.\n", $exit );
}
}
}
}
}
}
-$maintClass =
"ImportTextFiles"
;
+$maintClass =
ImportTextFiles::class
;
require_once RUN_MAINTENANCE_IF_MAIN;
require_once RUN_MAINTENANCE_IF_MAIN;