mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Math
synced 2024-11-28 09:20:42 +00:00
Improve backwards compatibility for $wgMathDisableTexFilter
* Only rewrite true to the new format Change-Id: I94e92599b08766521ab529934915eecd550a453b
This commit is contained in:
parent
0be6cdb08d
commit
585114270d
|
@ -408,8 +408,8 @@ class MathHooks {
|
|||
public static function registerExtension() {
|
||||
global $wgDefaultUserOptions, $wgMathValidModes, $wgMathDisableTexFilter;
|
||||
$wgMathValidModes = MathRenderer::getValidModes();
|
||||
if ( $wgMathDisableTexFilter == true ) { // ensure backwards compatibility
|
||||
$wgMathDisableTexFilter = 1;
|
||||
if ( $wgMathDisableTexFilter === true ) { // ensure backwards compatibility
|
||||
$wgMathDisableTexFilter = 'never';
|
||||
}
|
||||
$wgMathDisableTexFilter = MathRenderer::getDisableTexFilter();
|
||||
$wgDefaultUserOptions['math'] = self::mathModeToString( $wgDefaultUserOptions['math'] );
|
||||
|
|
Loading…
Reference in a new issue