var $debug = false;
var $uploads = false;
- function BackupReader() {
+ function __construct() {
$this->stderr = fopen( "php://stderr", "wt" );
}
array( &$this, 'handleUpload' ) );
$this->logItemCallback = $importer->setLogItemCallback(
array( &$this, 'handleLogItem' ) );
+
+ if ( $this->dryRun ) {
+ $importer->setPageOutCallback( null );
+ }
return $importer->doImport();
}