Fix MathRenderer::renderMath.

The call to getRenderer is supposed to be a static method in the same class,
not a global function.

Change-Id: I5d101574b1d67238c6357e154209f2595cb36859
This commit is contained in:
Daniel Friesen 2013-02-16 04:38:02 -08:00 committed by Moritz Schubortz
parent 8a04254e6d
commit 48b029fbe9
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ abstract class MathRenderer {
* @return string HTML for math tag
*/
public static function renderMath( $tex, $params = array(), $mode = MW_MATH_PNG ) {
$renderer = getRenderer( $tex, $params, $mode );
$renderer = self::getRenderer( $tex, $params, $mode );
return $renderer->render();
}