Merge "Improve backwards compatibility for $wgMathDisableTexFilter"

This commit is contained in:
jenkins-bot 2016-03-06 10:25:39 +00:00 committed by Gerrit Code Review
commit 0e63a6b695
1 changed files with 2 additions and 2 deletions

View File

@ -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'] );