fix: addModules with array argument
Use of ParserOutput::addModules with non-array argument was deprecated in MediaWiki 1.38. fix #37
这个提交包含在:
父节点
392661701b
当前提交
270c5364a5
|
@ -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' ); }
|
||||
|
|
正在加载...
在新工单中引用