From 585114270d767954ba972de0dfab5af3da6a6acb Mon Sep 17 00:00:00 2001 From: physikerwelt Date: Tue, 1 Mar 2016 15:47:14 +0100 Subject: [PATCH] Improve backwards compatibility for $wgMathDisableTexFilter * Only rewrite true to the new format Change-Id: I94e92599b08766521ab529934915eecd550a453b --- Math.hooks.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Math.hooks.php b/Math.hooks.php index 8b250e340..6327a9c1c 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'] );