X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2Fparse.php;h=d9a247c354cb9804592ec1e836bf2a7d8bbcad54;hb=fede766fe9950e3a036c263bf17d19d31278221c;hp=b87a716f622d730e1bdcc00b655b8c93050fd5ed;hpb=b610a3b617f7616b2f1db12498cbad5aeae12576;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/parse.php b/maintenance/parse.php index b87a716f62..d9a247c354 100644 --- a/maintenance/parse.php +++ b/maintenance/parse.php @@ -1,4 +1,7 @@ - * @license GNU General Public License 2.0 or later + * @license GPL-2.0-or-later */ require_once __DIR__ . '/Maintenance.php'; @@ -103,9 +106,7 @@ class CLIParser extends Maintenance { } protected function initParser() { - global $wgParserConf; - $parserClass = $wgParserConf['class']; - $this->parser = new $parserClass(); + $this->parser = MediaWikiServices::getInstance()->getParserFactory()->create(); } /**