Remove math script from Wikibase client styles queue

Follows-up 946a18d1, which accidentally added a scripts module
to the styles queue (which is a no-op) and fcdfc316 which removes
it from the repo.

Fixes the following debug warning:
> Unexpected general module "ext.math.scripts" in styles queue.

Bug: T158376
Change-Id: I432e724d5f84887f4aecb56db607d189db12c329
This commit is contained in:
Moritz Schubotz 2017-05-26 17:24:50 +02:00
parent 9b4316330c
commit 303e64c502
1 changed files with 1 additions and 2 deletions

View File

@ -70,8 +70,7 @@ class MathWikidataHook {
'value-type' => 'string',
'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 );
},
];