Passing a string to ParserOutput::addModules()/addModuleStyles() is deprecated

Bug: T296123
Change-Id: I9b7fe5acee73c3a378153c0820b46816164ebf21
This commit is contained in:
C. Scott Ananian 2022-01-11 17:02:39 -05:00
parent 5f749c6418
commit 0a3b28d3de

View file

@ -220,7 +220,7 @@ class Hooks {
'ext.templateData.images', 'ext.templateData.images',
'jquery.tablesorter.styles', 'jquery.tablesorter.styles',
] ); ] );
$parser->getOutput()->addModules( 'jquery.tablesorter' ); $parser->getOutput()->addModules( [ 'jquery.tablesorter' ] );
$parser->getOutput()->setEnableOOUI( true ); $parser->getOutput()->setEnableOOUI( true );
$userLang = $parser->getOptions()->getUserLangObj(); $userLang = $parser->getOptions()->getUserLangObj();