Physikerwelt has uploaded a new change for review.

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

Change subject: Don't modify id of math element
......................................................................

Don't modify id of math element

* Reverts a change that modifies the ID of the math element.
  This can be done by the new hook if desired.

Change-Id: Ic3bdfa4e3bab3b1712d9de6b2fea27f17a8d470f
---
M Math.php
M MathLaTeXML.php
2 files changed, 2 insertions(+), 4 deletions(-)


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

diff --git a/Math.php b/Math.php
index ea17e11..7027b5f 100644
--- a/Math.php
+++ b/Math.php
@@ -73,7 +73,7 @@
  */
 $wgMathMathMLTimeout = 20;
 /**
- * Option to disable the tex filter. If set to true any LaTeX espression is 
parsed
+ * Option to disable the tex filter. If set to true any LaTeX expression is 
parsed
  * this can be a potential security risk. If set to false only a subset of the 
tex
  * commands is allowed. See the wikipedia page Help:Math for details.
  */
diff --git a/MathLaTeXML.php b/MathLaTeXML.php
index 9076b0b..9e85b40 100644
--- a/MathLaTeXML.php
+++ b/MathLaTeXML.php
@@ -113,9 +113,7 @@
                        $result = json_decode( $res );
                        if ( $result && json_last_error() === JSON_ERROR_NONE ) 
{
                                if ( $this->isValidMathML( $result->result ) ) {
-                                       //add inputhash as id to the MathML 
element
-                                       $mml = preg_replace( '/id="p1.1.m1"/', 
'id="' . $this->getMd5() . '"' , $result->result , 1);
-                                       $this->setMathml( $mml );
+                                       $this->setMathml( $result->result );
                                        if ( $wgMathDebug ) {
                                                $this->setLog( $result->log );
                                                $this->setStatusCode( 
$result->status_code );

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic3bdfa4e3bab3b1712d9de6b2fea27f17a8d470f
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Math
Gerrit-Branch: dev
Gerrit-Owner: Physikerwelt <w...@physikerwelt.de>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to