Change validate in MathValidator to php-based checking

Bug: T323554
Change-Id: I8e900e03794bf4eda0ff27381c2c8078234a0b2d
This commit is contained in:
Stegmujo 2022-11-22 10:30:36 +01:00
parent 223b945b5d
commit 1b241d4aeb

View file

@ -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();