jenkins-bot has submitted this change and it was merged. Change subject: Ask for the MathML and SVG renders only if the input is valid ......................................................................
Ask for the MathML and SVG renders only if the input is valid Bug: T121445 Change-Id: I18b1ef4906f98cea99dca21d5a986a79c02cc233 --- M MathMathML.php 1 file changed, 5 insertions(+), 4 deletions(-) Approvals: Physikerwelt: Looks good to me, approved jenkins-bot: Verified diff --git a/MathMathML.php b/MathMathML.php index dff9f41..f407b45 100644 --- a/MathMathML.php +++ b/MathMathML.php @@ -96,10 +96,11 @@ $displaystyle = true; } $rbi = new MathRestbaseInterface( $tex, $displaystyle ); - $rbi->checkTeX(); - $this->mathml = $rbi->getMathML(); - $this->svg = $rbi->getSvg(); - $this->svgPath = $rbi->getFullSvgUrl(); + if ( $rbi->checkTeX() ) { + $this->mathml = $rbi->getMathML(); + $this->svg = $rbi->getSvg(); + $this->svgPath = $rbi->getFullSvgUrl(); + } $this->changed = false; return $rbi->getSuccess(); } -- To view, visit https://gerrit.wikimedia.org/r/259164 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I18b1ef4906f98cea99dca21d5a986a79c02cc233 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/Math Gerrit-Branch: master Gerrit-Owner: Mobrovac <mobro...@wikimedia.org> Gerrit-Reviewer: GWicke <gwi...@wikimedia.org> Gerrit-Reviewer: Physikerwelt <w...@physikerwelt.de> Gerrit-Reviewer: TheDJ <hartman.w...@gmail.com> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits