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:
Timo Tijhof 2017-02-17 14:55:51 -08:00
parent 09d7aa6db3
commit fcdfc31611
1 changed files with 1 additions and 2 deletions

View File

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