Physikerwelt has uploaded a new change for review.
https://gerrit.wikimedia.org/r/70118
Change subject: made isvalidxml non static
......................................................................
made isvalidxml non static
Change-Id: I593f58674d146ef7201b72480aff7ba71b2ed3ff
---
M MathLaTeXML.php
1 file changed, 4 insertions(+), 4 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Math
refs/changes/18/70118/1
diff --git a/MathLaTeXML.php b/MathLaTeXML.php
index e971f99..bf43498 100644
--- a/MathLaTeXML.php
+++ b/MathLaTeXML.php
@@ -93,7 +93,7 @@
} else {
$dbres = $this->readFromDatabase();
if ( $dbres ) {
- if ( self::isValidMathML( $this->getMathml() )
) {
+ if ( $this->isValidMathML( $this->getMathml() )
) {
wfDebugLog( "Math", "Valid entry found
in database." );
return false;
} else {
@@ -195,7 +195,7 @@
if ( $this->makeRequest( $host, $post, $res, $this->lastError )
) {
$result = json_decode( $res );
if ( json_last_error() === JSON_ERROR_NONE ) {
- if ( self::isValidMathML( $result->result ) ) {
+ if ( $this->isValidMathML( $result->result ) ) {
$this->setMathml( $result->result );
return true;
} else {
@@ -226,7 +226,7 @@
* @param string $XML
* @return boolean
*/
- static public function isValidMathML( $XML ) {
+ public function isValidMathML( $XML ) {
$out = false;
//depends on https://gerrit.wikimedia.org/r/#/c/66365/
$xmlObject = new XmlTypeCheck($XML, null, false);
@@ -235,7 +235,7 @@
} else {
$name = $xmlObject->getRootElement();
$name =
str_replace('http://www.w3.org/1998/Math/MathML:', '', $name);
- if ( in_array($name, $this->allowedRootElements) ) {
+ if ( in_array($name, $this->getAllowedRootElements()) )
{
$out = true;
} else {
wfDebugLog( "Math", "got wrong root element " .
$name );
--
To view, visit https://gerrit.wikimedia.org/r/70118
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I593f58674d146ef7201b72480aff7ba71b2ed3ff
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Math
Gerrit-Branch: LaTeXML
Gerrit-Owner: Physikerwelt <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits