Remove unused config variables from extension.json

Bug: T228547
Change-Id: I0aa7b624b645c3773b0d758634d370a494d1028a
This commit is contained in:
Moritz Schubotz (physikerwelt) 2019-07-19 22:46:20 +02:00 committed by Mobrovac
parent 3f16af9dc0
commit 0de63bdf6c
3 changed files with 2 additions and 28 deletions

View file

@ -39,9 +39,6 @@
"DefaultUserOptions": {
"math": "mathml"
},
"ExtensionFunctions": [
"MathHooks::setup"
],
"ExtensionMessagesFiles": {
"MathAlias": "Math.alias.php",
"MathAliasNoTranslate": "Math.alias.noTranslate.php"
@ -73,7 +70,6 @@
]
},
"config": {
"MathCheckFiles": true,
"MathDefaultLaTeXMLSetting": {
"format": "xhtml",
"whatsin": "math",
@ -98,27 +94,21 @@
],
"linelength": 90
},
"MathDirectory": false,
"MathDisableTexFilter": "new",
"MathEnableExperimentalInputFormats": false,
"MathFileBackend": false,
"MathLaTeXMLTimeout": 240,
"MathLaTeXMLUrl": "http://gw125.iu.xsede.org:8888",
"MathMathMLTimeout": 20,
"MathMathMLUrl": "http://mathoid.testme.wmflabs.org",
"MathFullRestbaseURL": "https://wikimedia.org/api/rest_",
"MathConcurrentReqs": 50,
"MathPath": false,
"MathTexvcCheckExecutable": false,
"MathoidCli": false,
"MathValidModes": [
"png",
"source",
"mathml"
],
"MathEnableWikibaseDataType": true,
"Texvc": false,
"TexvcBackgroundColor": "transparent"
"MathEnableWikibaseDataType": true
},
"VisualEditorPluginModules": [
"ext.math.visualEditor"

View file

@ -148,22 +148,6 @@ class MathHooks {
return true;
}
/**
* Set up $wgMathPath and $wgMathDirectory globals if they're not already set.
*/
public static function setup() {
global $wgMathPath, $wgMathDirectory,
$wgUploadPath, $wgUploadDirectory;
if ( $wgMathPath === false ) {
$wgMathPath = "{$wgUploadPath}/math";
}
if ( $wgMathDirectory === false ) {
$wgMathDirectory = "{$wgUploadDirectory}/math";
}
}
/**
* Register the <math> tag with the Parser.
*

View file

@ -1,7 +1,7 @@
<?php
/**
* @covers MathInputCheckTexvc
* @covers MathMathMLCli
*
* @group Math
*