Remove Wikipedia/Wikimedia specific translations
[lhc/web/wiklou.git] / maintenance / importDump.php
index fe808e4..211d0a9 100644 (file)
@@ -24,7 +24,6 @@
 $optionsWithArgs = array( 'report' );
 
 require_once( 'commandLine.inc' );
-require_once( 'SpecialImport.php' );
 
 class BackupReader {
        var $reportingInterval = 100;
@@ -69,8 +68,8 @@ class BackupReader {
                if( $this->reporting ) {
                        $delta = wfTime() - $this->startTime;
                        if( $delta ) {
-                               $rate = $this->pageCount / $delta;
-                               $revrate = $this->revCount / $delta;
+                               $rate = sprintf("%.2f", $this->pageCount / $delta);
+                               $revrate = sprintf("%.2f", $this->revCount / $delta);
                        } else {
                                $rate = '-';
                                $revrate = '-';
@@ -136,7 +135,7 @@ if( WikiError::isError( $result ) ) {
 } else {
        echo "Done!\n";
        echo "You might want to run rebuildrecentchanges.php to regenerate\n";
-       echo "the recentchanges page.";
+       echo "the recentchanges page.\n";
 }
 
-?>
+