fix: addModules with array argument

Use of ParserOutput::addModules with non-array argument was deprecated in MediaWiki 1.38.

fix #37
这个提交包含在:
cubercsl 2022-07-04 21:32:38 +08:00
父节点 392661701b
当前提交 270c5364a5
找不到此签名对应的密钥
GPG 密钥 ID: 45C64B19E9161E41
共有 1 个文件被更改,包括 2 次插入2 次删除

查看文件

@ -13,8 +13,8 @@ class SimpleMathJaxHooks {
$wgOut->addJsConfigVars( 'wgSmjScale', $wgSmjScale );
$wgOut->addJsConfigVars( 'wgSmjEnableMenu', $wgSmjEnableMenu );
$wgOut->addJsConfigVars( 'wgSmjDisplayAlign', $wgSmjDisplayAlign );
$wgOut->addModules( 'ext.SimpleMathJax' );
$wgOut->addModules( 'ext.SimpleMathJax.mobile' ); // For MobileFrontend
$wgOut->addModules( [ 'ext.SimpleMathJax' ] );
$wgOut->addModules( [ 'ext.SimpleMathJax.mobile' ] ); // For MobileFrontend
$parser->setHook( 'math', __CLASS__ . '::renderMath' );
if( $wgSmjUseChem ) $parser->setHook( 'chem', __CLASS__ . '::renderChem' ); }