X-Git-Url: https://git.cyclocoop.org/?a=blobdiff_plain;f=maintenance%2FimportDump.php;h=f51d7ad73253d0df8ebbe30f924621be4fdb48f5;hb=51491c785b688a63949d0500703e38b95700d948;hp=b6e0fe09e5e40199c0aff5773391b66ce0434162;hpb=eeb7300f6004e95620514eb9bac508425e94f197;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/importDump.php b/maintenance/importDump.php index b6e0fe09e5..f51d7ad732 100644 --- a/maintenance/importDump.php +++ b/maintenance/importDump.php @@ -24,7 +24,7 @@ * @ingroup Maintenance */ -require_once( dirname( __FILE__ ) . '/Maintenance.php' ); +require_once( __DIR__ . '/Maintenance.php' ); /** * Maintenance script that imports XML dump files into the current wiki. @@ -208,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 ); @@ -254,7 +254,7 @@ TEXT; } function importFromHandle( $handle ) { - $this->startTime = wfTime(); + $this->startTime = microtime( true ); $source = new ImportStreamSource( $handle ); $importer = new WikiImporter( $source );