From 303e64c50222794171ba41d210d0b85624f8cee8 Mon Sep 17 00:00:00 2001 From: Moritz Schubotz Date: Fri, 26 May 2017 17:24:50 +0200 Subject: [PATCH] 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 --- MathWikidataHook.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/MathWikidataHook.php b/MathWikidataHook.php index ff19b3c3b..cc14635bd 100644 --- a/MathWikidataHook.php +++ b/MathWikidataHook.php @@ -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 ); }, ];