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
This commit is contained in:
physikerwelt 2015-07-31 18:09:40 +02:00
parent bc52c77d24
commit fdf791d02a
1 changed files with 1 additions and 1 deletions

View File

@ -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' ) {