X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FdumpIterator.php;h=e9a6bc58bfc449ac82087728d9e7d319b0fbaf0a;hb=d6ba90904c15d0fd8f1b84820a7d99678a1fd025;hp=254f36804241365c5c0f3056d5106daa1f20d30f;hpb=587d08c5a626f8195def9f82ee83e17c85824db8;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/dumpIterator.php b/maintenance/dumpIterator.php index 254f368042..e9a6bc58bf 100644 --- a/maintenance/dumpIterator.php +++ b/maintenance/dumpIterator.php @@ -77,6 +77,9 @@ abstract class DumpIterator extends Maintenance { $importer->setRevisionCallback( [ $this, 'handleRevision' ] ); + $importer->setNoticeCallback( function ( $msg, $params ) { + echo wfMessage( $msg, $params )->text() . "\n"; + } ); $this->from = $this->getOption( 'from', null ); $this->count = 0; @@ -102,7 +105,7 @@ abstract class DumpIterator extends Maintenance { if ( $this->getDbType() == Maintenance::DB_NONE ) { global $wgUseDatabaseMessages, $wgLocalisationCacheConf, $wgHooks; $wgUseDatabaseMessages = false; - $wgLocalisationCacheConf['storeClass'] = 'LCStoreNull'; + $wgLocalisationCacheConf['storeClass'] = LCStoreNull::class; $wgHooks['InterwikiLoadPrefix'][] = 'DumpIterator::disableInterwikis'; } } @@ -182,5 +185,5 @@ class SearchDump extends DumpIterator { } } -$maintClass = "SearchDump"; +$maintClass = SearchDump::class; require_once RUN_MAINTENANCE_IF_MAIN;