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 "Print chained exceptions when maintenance script fails."
[lhc/web/wiklou.git]
/
maintenance
/
preprocessDump.php
diff --git
a/maintenance/preprocessDump.php
b/maintenance/preprocessDump.php
index
f8526d0
..
a62e019
100644
(file)
--- a/
maintenance/preprocessDump.php
+++ b/
maintenance/preprocessDump.php
@@
-25,6
+25,8
@@
* @ingroup Maintenance
*/
* @ingroup Maintenance
*/
+use MediaWiki\MediaWikiServices;
+
require_once __DIR__ . '/dumpIterator.php';
/**
require_once __DIR__ . '/dumpIterator.php';
/**
@@
-40,9
+42,9
@@
class PreprocessDump extends DumpIterator {
public $mPPNodeCount = 0;
public function getStripList() {
public $mPPNodeCount = 0;
public function getStripList() {
-
global $wgParser
;
+
$parser = MediaWikiServices::getInstance()->getParser()
;
- return $
wgP
arser->getStripList();
+ return $
p
arser->getStripList();
}
public function __construct() {
}
public function __construct() {
@@
-56,7
+58,7
@@
class PreprocessDump extends DumpIterator {
}
public function checkOptions() {
}
public function checkOptions() {
- global $wgParser
, $wgParser
Conf, $wgPreprocessorCacheThreshold;
+ global $wgParserConf, $wgPreprocessorCacheThreshold;
if ( !$this->hasOption( 'cache' ) ) {
$wgPreprocessorCacheThreshold = false;
if ( !$this->hasOption( 'cache' ) ) {
$wgPreprocessorCacheThreshold = false;
@@
-70,7
+72,7
@@
class PreprocessDump extends DumpIterator {
$name = Preprocessor_DOM::class;
}
$name = Preprocessor_DOM::class;
}
-
$wgParser
->firstCallInit();
+
MediaWikiServices::getInstance()->getParser()
->firstCallInit();
$this->mPreprocessor = new $name( $this );
}
$this->mPreprocessor = new $name( $this );
}