Merge "Add PNG and MathPlayer fallback for Wikidata user"

This commit is contained in:
jenkins-bot 2017-06-23 20:38:08 +00:00 committed by Gerrit Code Review
commit 7787f3454d
1 changed files with 2 additions and 0 deletions

View File

@ -42,6 +42,7 @@ class MathWikidataHook {
'formatter-factory-callback' => function ( $format, FormatterOptions $options ) {
global $wgOut;
$wgOut->addModuleStyles( [ 'ext.math.styles' ] );
$wgOut->addModules( [ 'ext.math.scripts' ] );
return new MathFormatter( $format );
},
'rdf-builder-factory-callback' => function (
@ -71,6 +72,7 @@ class MathWikidataHook {
'formatter-factory-callback' => function ( $format, FormatterOptions $options ) {
global $wgOut;
$wgOut->addModuleStyles( [ 'ext.math.styles' ] );
$wgOut->addModules( [ 'ext.math.scripts' ] );
return new MathFormatter( $format );
},
];