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 "filebackend: reduce hashing I/O in SwiftFileBackend::doStoreInternal()"
[lhc/web/wiklou.git]
/
maintenance
/
renderDump.php
diff --git
a/maintenance/renderDump.php
b/maintenance/renderDump.php
index
68a371c
..
85795ca
100644
(file)
--- a/
maintenance/renderDump.php
+++ b/
maintenance/renderDump.php
@@
-40,6
+40,8
@@
class DumpRenderer extends Maintenance {
private $count = 0;
private $outputDirectory, $startTime;
private $count = 0;
private $outputDirectory, $startTime;
+ /** @var string */
+ private $prefix;
public function __construct() {
parent::__construct();
public function __construct() {
parent::__construct();
@@
-66,6
+68,9
@@
class DumpRenderer extends Maintenance {
$importer->setRevisionCallback(
[ $this, 'handleRevision' ] );
$importer->setRevisionCallback(
[ $this, 'handleRevision' ] );
+ $importer->setNoticeCallback( function ( $msg, $params ) {
+ echo wfMessage( $msg, $params )->text() . "\n";
+ } );
$importer->doImport();
$importer->doImport();
@@
-120,5
+125,5
@@
class DumpRenderer extends Maintenance {
}
}
}
}
-$maintClass =
"DumpRenderer"
;
+$maintClass =
DumpRenderer::class
;
require_once RUN_MAINTENANCE_IF_MAIN;
require_once RUN_MAINTENANCE_IF_MAIN;