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
CommentStore: Hard-deprecate newKey()
[lhc/web/wiklou.git]
/
maintenance
/
parse.php
diff --git
a/maintenance/parse.php
b/maintenance/parse.php
index
b87a716
..
d9a247c
100644
(file)
--- a/
maintenance/parse.php
+++ b/
maintenance/parse.php
@@
-1,4
+1,7
@@
<?php
<?php
+
+use MediaWiki\MediaWikiServices;
+
/**
* Parse some wikitext.
*
/**
* Parse some wikitext.
*
@@
-46,7
+49,7
@@
* @file
* @ingroup Maintenance
* @author Antoine Musso <hashar at free dot fr>
* @file
* @ingroup Maintenance
* @author Antoine Musso <hashar at free dot fr>
- * @license G
NU General Public License 2.0 or
later
+ * @license G
PL-2.0-or-
later
*/
require_once __DIR__ . '/Maintenance.php';
*/
require_once __DIR__ . '/Maintenance.php';
@@
-103,9
+106,7
@@
class CLIParser extends Maintenance {
}
protected function initParser() {
}
protected function initParser() {
- global $wgParserConf;
- $parserClass = $wgParserConf['class'];
- $this->parser = new $parserClass();
+ $this->parser = MediaWikiServices::getInstance()->getParserFactory()->create();
}
/**
}
/**