jenkins-bot has submitted this change and it was merged.

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(-)

Approvals:
  BryanDavis: Looks good to me, approved
  Mobrovac: Looks good to me, but someone else must approve
  GWicke: Looks good to me, but someone else must approve
  jenkins-bot: Verified



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: merged
Gerrit-Change-Id: Ibf6bdbd4ea36b4905445d5878f32f7e0b2bc8bac
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Math
Gerrit-Branch: master
Gerrit-Owner: Physikerwelt <[email protected]>
Gerrit-Reviewer: BryanDavis <[email protected]>
Gerrit-Reviewer: GWicke <[email protected]>
Gerrit-Reviewer: Legoktm <[email protected]>
Gerrit-Reviewer: Mobrovac <[email protected]>
Gerrit-Reviewer: TheDJ <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

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

Reply via email to