Mattflaschen has uploaded a new change for review.
https://gerrit.wikimedia.org/r/59773
Change subject: Update call to MathRenderer due to changes to Math extension.
......................................................................
Update call to MathRenderer due to changes to Math extension.
Bug: 46132
Change-Id: I8ee3fd1360327e849d4ec217b212608636995d73
---
M MathCaptcha.class.php
1 file changed, 1 insertion(+), 2 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ConfirmEdit
refs/changes/73/59773/1
diff --git a/MathCaptcha.class.php b/MathCaptcha.class.php
index 7874991..13a79a9 100644
--- a/MathCaptcha.class.php
+++ b/MathCaptcha.class.php
@@ -40,11 +40,10 @@
/** Fetch the math */
function fetchMath( $sum ) {
if ( MWInit::classExists( 'MathRenderer' ) ) {
- $math = new MathRenderer( $sum );
+ $math = MathRenderer::getRenderer( $sum, array(),
MW_MATH_PNG );
} else {
throw new MWException( 'MathCaptcha requires the Math
extension for MediaWiki versions 1.18 and above.' );
}
- $math->setOutputMode( MW_MATH_PNG );
$html = $math->render();
return preg_replace( '/alt=".*?"/', '', $html );
}
--
To view, visit https://gerrit.wikimedia.org/r/59773
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I8ee3fd1360327e849d4ec217b212608636995d73
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/ConfirmEdit
Gerrit-Branch: master
Gerrit-Owner: Mattflaschen <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits