Remove 'ext.math.scripts' from styles queue on wikidata
Follows-up 946a18d1
, which accidentally added a scripts module
to the styles queue (which is a no-op).
Fixes the following debug warning:
> Unexpected general module "ext.math.scripts" in styles queue.
Bug: T158376
Change-Id: Id026fbaa48cfab582b192bc0974ba7c6f01f37d0
This commit is contained in:
parent
09d7aa6db3
commit
fcdfc31611
|
@ -41,8 +41,7 @@ class MathWikidataHook {
|
||||||
},
|
},
|
||||||
'formatter-factory-callback' => function( $format, FormatterOptions $options ) {
|
'formatter-factory-callback' => function( $format, FormatterOptions $options ) {
|
||||||
global $wgOut;
|
global $wgOut;
|
||||||
$styles = [ 'ext.math.scripts', 'ext.math.styles' ];
|
$wgOut->addModuleStyles( [ 'ext.math.styles' ] );
|
||||||
$wgOut->addModuleStyles( $styles );
|
|
||||||
return new MathFormatter( $format );
|
return new MathFormatter( $format );
|
||||||
},
|
},
|
||||||
'rdf-builder-factory-callback' => function (
|
'rdf-builder-factory-callback' => function (
|
||||||
|
|
Loading…
Reference in New Issue