mirror of
https://github.com/Universal-Omega/PortableInfobox.git
synced 2024-11-15 03:35:53 +00:00
use MediaWikiServices::getInstance()->getParser()
This commit is contained in:
parent
f713ac03aa
commit
98b0038c92
|
@ -3,6 +3,7 @@
|
|||
namespace PortableInfobox\Helpers;
|
||||
|
||||
use MediaWiki\Logger\LoggerFactory;
|
||||
use MediaWiki\MediaWikiServices;
|
||||
|
||||
class PortableInfoboxParsingHelper {
|
||||
|
||||
|
@ -26,7 +27,7 @@ class PortableInfoboxParsingHelper {
|
|||
$templateText = $this->fetchArticleContent( $title );
|
||||
|
||||
if ( $templateText ) {
|
||||
$parser = new \Parser();
|
||||
$parser = MediaWikiServices::getInstance()->getParser();
|
||||
$parser->setTitle( $title );
|
||||
$parserOptions = new \ParserOptions();
|
||||
$frame = $parser->getPreprocessor()->newFrame();
|
||||
|
|
Loading…
Reference in a new issue