Localization update for he.
[lhc/web/wiklou.git] / maintenance / importDump.php
index cbe8153..030962b 100644 (file)
@@ -38,7 +38,7 @@ class BackupReader {
        var $debug     = false;
        var $uploads   = false;
 
-       function BackupReader() {
+       function __construct() {
                $this->stderr = fopen( "php://stderr", "wt" );
        }
 
@@ -150,6 +150,10 @@ class BackupReader {
                        array( &$this, 'handleUpload' ) );
                $this->logItemCallback = $importer->setLogItemCallback(
                        array( &$this, 'handleLogItem' ) );
+                       
+               if ( $this->dryRun ) {
+                       $importer->setPageOutCallback( null );
+               }
 
                return $importer->doImport();
        }