dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Drop unused database field ss_admins"
[lhc/web/wiklou.git]
/
maintenance
/
importDump.php
diff --git
a/maintenance/importDump.php
b/maintenance/importDump.php
index
b089f70
..
904b624
100644
(file)
--- a/
maintenance/importDump.php
+++ b/
maintenance/importDump.php
@@
-32,13
+32,13
@@
require_once( __DIR__ . '/Maintenance.php' );
* @ingroup Maintenance
*/
class BackupReader extends Maintenance {
* @ingroup Maintenance
*/
class BackupReader extends Maintenance {
-
var
$reportingInterval = 100;
-
var
$pageCount = 0;
-
var
$revCount = 0;
-
var
$dryRun = false;
-
var
$uploads = false;
-
var
$imageBasePath = false;
-
var
$nsFilter = false;
+
public
$reportingInterval = 100;
+
public
$pageCount = 0;
+
public
$revCount = 0;
+
public
$dryRun = false;
+
public
$uploads = false;
+
public
$imageBasePath = false;
+
public
$nsFilter = false;
function __construct() {
parent::__construct();
function __construct() {
parent::__construct();
@@
-208,7
+208,7
@@
TEXT;
function showReport() {
if ( !$this->mQuiet ) {
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 );
if ( $delta ) {
$rate = sprintf( "%.2f", $this->pageCount / $delta );
$revrate = sprintf( "%.2f", $this->revCount / $delta );
@@
-254,7
+254,7
@@
TEXT;
}
function importFromHandle( $handle ) {
}
function importFromHandle( $handle ) {
- $this->startTime =
wfTime(
);
+ $this->startTime =
microtime( true
);
$source = new ImportStreamSource( $handle );
$importer = new WikiImporter( $source );
$source = new ImportStreamSource( $handle );
$importer = new WikiImporter( $source );