Use the cached version of checkTex to improve performance

Bug: T132096
Change-Id: Ia327b4fac7d826ba24027b9f5cea8ba45c7d9017
This commit is contained in:
Moritz Schubotz 2016-04-29 20:18:41 -04:00 committed by Physikerwelt
parent db767e9e5e
commit af2396cc06

View file

@ -41,7 +41,7 @@ class MathRestbaseInterface {
$i = 0;
foreach ( $rbis as $rbi ) {
/** @var MathRestbaseInterface $rbi */
if ( $rbi->checkTeX() ) {
if ( $rbi->getSuccess() ) {
$requests[] = $rbi->getContentRequest( 'mml' );
} else {
$skips[] = $i;