From: Umherirrender Date: Fri, 5 Jul 2019 20:16:26 +0000 (+0200) Subject: preprocessDump.php: Fix invalid Preprocessor instantiation X-Git-Tag: 1.34.0-rc.0~334^2 X-Git-Url: http://git.cyclocoop.org/?a=commitdiff_plain;h=ed6bb98f1c40ef2a2de1a570dd209f7af1d5ea5b;p=lhc%2Fweb%2Fwiklou.git preprocessDump.php: Fix invalid Preprocessor instantiation The Preprocessor constructor needs a Parser object, not the maintenance object itself. Change-Id: I0f60b968b52d29c0e7484409cc4aa790ca391303 --- diff --git a/maintenance/preprocessDump.php b/maintenance/preprocessDump.php index b9e084eab1..f0e5a6c821 100644 --- a/maintenance/preprocessDump.php +++ b/maintenance/preprocessDump.php @@ -73,8 +73,9 @@ class PreprocessDump extends DumpIterator { $name = Preprocessor_DOM::class; } - MediaWikiServices::getInstance()->getParser()->firstCallInit(); - $this->mPreprocessor = new $name( $this ); + $parser = MediaWikiServices::getInstance()->getParser(); + $parser->firstCallInit(); + $this->mPreprocessor = new $name( $parser ); } /**