diff --git a/MathLaTeXML.php b/MathLaTeXML.php index b30a820..4915058 100644 --- a/MathLaTeXML.php +++ b/MathLaTeXML.php @@ -182,8 +182,7 @@ class MathLaTeXML extends MathMathML { $renderer = new MathMathML( $this->getTex() ); $renderer->setMathml( $this->getMathml() ); $renderer->setMode( MW_MATH_LATEXML ); - $renderer->setPurge( true ); - $res = $renderer->render(); + $res = $renderer->render( true ); if ( $res == true ) { $this->svg = $renderer->getSvg(); } else { diff --git a/MathMathML.php b/MathMathML.php index 82eea5e..3d1a931 100644 --- a/MathMathML.php +++ b/MathMathML.php @@ -104,7 +104,7 @@ class MathMathML extends MathRenderer { wfDebugLog( "Math", "Rerendering was requested." ); return true; } else { - $dbres = $this->readFromDatabase(); + $dbres = $this->isInDatabase(); if ( $dbres ) { if ( $this->isValidMathML( $this->getMathml() ) ) { wfDebugLog( "Math", "Valid MathML entry found in database." ); diff --git a/MathTexvc.php b/MathTexvc.php index f5e4f61..057007c 100644 --- a/MathTexvc.php +++ b/MathTexvc.php @@ -387,7 +387,7 @@ class MathTexvc extends MathRenderer { global $wgMathCheckFiles; wfProfileIn( __METHOD__ ); - if ( $this->readFromDatabase() ) { + if ( $this->isInDatabase() ) { if ( !$wgMathCheckFiles ) { // Short-circuit the file existence & migration checks wfProfileOut( __METHOD__ ); @@ -413,8 +413,8 @@ class MathTexvc extends MathRenderer { return $backend->getFileContents( array( 'src' => $this->getHashPath() . "/" . $this->getHash() . '.png' ) ); } - public function readFromDatabase() { - $return = parent::readFromDatabase(); + public function isInDatabase() { + $return = parent::isInDatabase(); if ( $this->hash && $return ) { return true; } else {