diff options
Diffstat (limited to 'maintenance/importTextFiles.php')
-rw-r--r-- | maintenance/importTextFiles.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/maintenance/importTextFiles.php b/maintenance/importTextFiles.php index 816e745281d8..4681003ecb4d 100644 --- a/maintenance/importTextFiles.php +++ b/maintenance/importTextFiles.php @@ -73,7 +73,7 @@ class ImportTextFiles extends Maintenance { $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!" ); } } }; @@ -88,7 +88,7 @@ class ImportTextFiles extends Maintenance { } if ( !$user ) { - $this->error( "Invalid username\n", true ); + $this->fatalError( "Invalid username\n" ); } if ( $user->isAnon() ) { $user->addToDatabase(); @@ -199,7 +199,7 @@ class ImportTextFiles extends Maintenance { $this->output( "Done! $successCount succeeded, $skipCount skipped.\n" ); if ( $exit ) { - $this->error( "Import failed with $failCount failed pages.\n", $exit ); + $this->fatalError( "Import failed with $failCount failed pages.\n", $exit ); } } } |