Follow-up r81619: Add new message key to maintenance file
[lhc/web/wiklou.git] / maintenance / importDump.php
index 00b9cce..5f47635 100644 (file)
@@ -60,13 +60,13 @@ class BackupReader {
                        call_user_func( $this->importCallback, $rev );
                }
        }
-       
+
        function handleUpload( $revision ) {
                if ( $this->uploads ) {
                        $this->uploadCount++;
                        // $this->report();
                        $this->progress( "upload: " . $revision->getFilename() );
-                       
+
                        if ( !$this->dryRun ) {
                                // bluuuh hack
                                // call_user_func( $this->uploadCallback, $revision );
@@ -148,7 +148,7 @@ class BackupReader {
                        array( &$this, 'handleUpload' ) );
                $this->logItemCallback = $importer->setLogItemCallback(
                        array( &$this, 'handleLogItem' ) );
-                       
+
                if ( $this->dryRun ) {
                        $importer->setPageOutCallback( null );
                }
@@ -184,12 +184,6 @@ if ( isset( $args[0] ) ) {
        $result = $reader->importFromStdin();
 }
 
-if ( WikiError::isError( $result ) ) {
-       echo $result->getMessage() . "\n";
-} else {
-       echo "Done!\n";
-       echo "You might want to run rebuildrecentchanges.php to regenerate\n";
-       echo "the recentchanges page.\n";
-}
-
-
+echo "Done!\n";
+echo "You might want to run rebuildrecentchanges.php to regenerate\n";
+echo "the recentchanges page.\n";