Physikerwelt has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/228298

Change subject: Fix: Set default MathStyle to inlineDisplaystyle
......................................................................

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
---
M MathRenderer.php
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Math 
refs/changes/98/228298/1

diff --git a/MathRenderer.php b/MathRenderer.php
index 2e000bf..c1819e8 100644
--- a/MathRenderer.php
+++ b/MathRenderer.php
@@ -112,7 +112,7 @@
         */
        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' ) {

-- 
To view, visit https://gerrit.wikimedia.org/r/228298
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ibf6bdbd4ea36b4905445d5878f32f7e0b2bc8bac
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Math
Gerrit-Branch: master
Gerrit-Owner: Physikerwelt <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to