Physikerwelt has uploaded a new change for review.

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

Change subject: Fix: id-attribute
......................................................................

Fix: id-attribute

Id attribute was read wrong place

Change-Id: I6f2671a322f637a1d8e0c88833ce4456d188829b
---
M MathRenderer.php
1 file changed, 4 insertions(+), 4 deletions(-)


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

diff --git a/MathRenderer.php b/MathRenderer.php
index 58a317a..8e46583 100644
--- a/MathRenderer.php
+++ b/MathRenderer.php
@@ -76,6 +76,9 @@
                $this->userInputTex = $tex;
                $this->tex = $tex;
                $this->params = $params;
+               if ( isset( $params['id'] ) ) {
+                       $this->id = $params['id'];
+               }
        }
 
        /**
@@ -139,10 +142,7 @@
                                $tex = '{\textstyle ' . $tex . '}';
                        }
                }
-               $id = null;
-               if ( isset( $params['id'] ) ) {
-                       $id = $params['id'];
-               }
+
                if ( isset( $params['forcemathmode'] ) ) {
                        $mode = $params['forcemathmode'];
                }

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I6f2671a322f637a1d8e0c88833ce4456d188829b
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