diff --git a/Math.hooks.php b/Math.hooks.php index 8b250e3..6327a9c 100644 --- a/Math.hooks.php +++ b/Math.hooks.php @@ -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'] );