Merge "Improve backwards compatibility for $wgMathDisableTexFilter"
This commit is contained in:
commit
0e63a6b695
|
@ -408,8 +408,8 @@ class MathHooks {
|
||||||
public static function registerExtension() {
|
public static function registerExtension() {
|
||||||
global $wgDefaultUserOptions, $wgMathValidModes, $wgMathDisableTexFilter;
|
global $wgDefaultUserOptions, $wgMathValidModes, $wgMathDisableTexFilter;
|
||||||
$wgMathValidModes = MathRenderer::getValidModes();
|
$wgMathValidModes = MathRenderer::getValidModes();
|
||||||
if ( $wgMathDisableTexFilter == true ) { // ensure backwards compatibility
|
if ( $wgMathDisableTexFilter === true ) { // ensure backwards compatibility
|
||||||
$wgMathDisableTexFilter = 1;
|
$wgMathDisableTexFilter = 'never';
|
||||||
}
|
}
|
||||||
$wgMathDisableTexFilter = MathRenderer::getDisableTexFilter();
|
$wgMathDisableTexFilter = MathRenderer::getDisableTexFilter();
|
||||||
$wgDefaultUserOptions['math'] = self::mathModeToString( $wgDefaultUserOptions['math'] );
|
$wgDefaultUserOptions['math'] = self::mathModeToString( $wgDefaultUserOptions['math'] );
|
||||||
|
|
Loading…
Reference in New Issue