From fdf791d02ac8cb19ef889b7d7a811463c6312f23 Mon Sep 17 00:00:00 2001 From: physikerwelt Date: Fri, 31 Jul 2015 18:09:40 +0200 Subject: [PATCH] Fix: Set default MathStyle to inlineDisplaystyle In I6d1094ece79e912d9ddbef6681a25196c7a6e801 math styles were renamed from integer constants to string constants. Before NULL corresponded to inlineDisplaystyle. This is no longer the case so NULL has to be replaced by the actual default value. Change-Id: Ibf6bdbd4ea36b4905445d5878f32f7e0b2bc8bac --- MathRenderer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MathRenderer.php b/MathRenderer.php index 2e000bf..c1819e8 100644 --- a/MathRenderer.php +++ b/MathRenderer.php @@ -112,7 +112,7 @@ abstract class MathRenderer { */ public static function getRenderer( $tex, $params = array(), $mode = 'png' ) { global $wgDefaultUserOptions, $wgMathEnableExperimentalInputFormats; - $mathStyle = null; + $mathStyle = 'inlineDisplaystyle'; // Set the default style if ( isset( $params['display'] ) ) { $layoutMode = $params['display']; if ( $layoutMode == 'block' ) {