Physikerwelt has uploaded a new change for review. (
https://gerrit.wikimedia.org/r/355793 )
Change subject: Remove math script from Wikibase client styles queue
......................................................................
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
---
M MathWikidataHook.php
1 file changed, 1 insertion(+), 2 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Math
refs/changes/93/355793/1
diff --git a/MathWikidataHook.php b/MathWikidataHook.php
index ff19b3c..cc14635 100644
--- a/MathWikidataHook.php
+++ b/MathWikidataHook.php
@@ -70,8 +70,7 @@
'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 );
},
];
--
To view, visit https://gerrit.wikimedia.org/r/355793
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I432e724d5f84887f4aecb56db607d189db12c329
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Math
Gerrit-Branch: master
Gerrit-Owner: Physikerwelt <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits