X-Git-Url: https://git.cyclocoop.org/?a=blobdiff_plain;f=maintenance%2FimportDump.php;h=f51d7ad73253d0df8ebbe30f924621be4fdb48f5;hb=51491c785b688a63949d0500703e38b95700d948;hp=2ad0872f54afec98430dd7e4e73524f74d0da81a;hpb=9e9b3a219c50f4ad8d50aed5d44b33c9411082c8;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/importDump.php b/maintenance/importDump.php index 2ad0872f54..f51d7ad732 100644 --- a/maintenance/importDump.php +++ b/maintenance/importDump.php @@ -1,6 +1,8 @@ + * Import XML dump files into the current wiki. + * + * Copyright © 2005 Brion Vibber * http://www.mediawiki.org/ * * This program is free software; you can redistribute it and/or modify @@ -22,9 +24,11 @@ * @ingroup Maintenance */ -require_once( dirname( __FILE__ ) . '/Maintenance.php' ); +require_once( __DIR__ . '/Maintenance.php' ); /** + * Maintenance script that imports XML dump files into the current wiki. + * * @ingroup Maintenance */ class BackupReader extends Maintenance { @@ -204,7 +208,7 @@ TEXT; function showReport() { if ( !$this->mQuiet ) { - $delta = wfTime() - $this->startTime; + $delta = microtime( true ) - $this->startTime; if ( $delta ) { $rate = sprintf( "%.2f", $this->pageCount / $delta ); $revrate = sprintf( "%.2f", $this->revCount / $delta ); @@ -250,7 +254,7 @@ TEXT; } function importFromHandle( $handle ) { - $this->startTime = wfTime(); + $this->startTime = microtime( true ); $source = new ImportStreamSource( $handle ); $importer = new WikiImporter( $source );