mirror of
https://github.com/Universal-Omega/PortableInfobox.git
synced 2024-11-15 03:35:53 +00:00
Pass array to ParserOutput::addModules()
/addModuleStyles()
(#65)
To fix deprecation notices on MediaWiki 1.38+
This commit is contained in:
parent
44c3389d5a
commit
fffbcaac5e
|
@ -124,8 +124,8 @@ class PortableInfoboxParserTagController {
|
|||
$markup = '<' . self::PARSER_TAG_NAME . '>' . $text . '</' . self::PARSER_TAG_NAME . '>';
|
||||
$parserOutput = $parser->getOutput();
|
||||
|
||||
$parserOutput->addModuleStyles( 'ext.PortableInfobox.styles' );
|
||||
$parserOutput->addModules( 'ext.PortableInfobox.scripts' );
|
||||
$parserOutput->addModuleStyles( [ 'ext.PortableInfobox.styles' ] );
|
||||
$parserOutput->addModules( [ 'ext.PortableInfobox.scripts' ] );
|
||||
|
||||
try {
|
||||
$renderedValue = $this->render( $markup, $parser, $frame, $params );
|
||||
|
|
Loading…
Reference in a new issue