From fcdfc31611921cc5b0ed9792c4a081a04df16512 Mon Sep 17 00:00:00 2001 From: Timo Tijhof Date: Fri, 17 Feb 2017 14:55:51 -0800 Subject: [PATCH] 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 --- MathWikidataHook.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/MathWikidataHook.php b/MathWikidataHook.php index 94e8d38..ff19b3c 100644 --- a/MathWikidataHook.php +++ b/MathWikidataHook.php @@ -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 (