mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Math
synced 2024-11-28 01:10:09 +00:00
Change validate in MathValidator to php-based checking
Bug: T323554 Change-Id: I8e900e03794bf4eda0ff27381c2c8078234a0b2d
This commit is contained in:
parent
223b945b5d
commit
1b241d4aeb
|
@ -33,7 +33,7 @@ class MathValidator implements ValueValidator {
|
|||
$tex = $value->getValue();
|
||||
$checker = MediaWikiServices::getInstance()
|
||||
->getService( 'Math.CheckerFactory' )
|
||||
->newMathoidChecker( $tex, 'tex' );
|
||||
->newLocalChecker( $tex, 'tex' );
|
||||
|
||||
if ( $checker->isValid() ) {
|
||||
return Result::newSuccess();
|
||||
|
|
Loading…
Reference in a new issue