From 8477a17a09268ba35987ea4ae62d59c6b3b7f29a Mon Sep 17 00:00:00 2001 From: Ori Livneh Date: Mon, 8 Dec 2014 20:36:29 -0800 Subject: [PATCH] Fix for fatal caused by static call to MathRenderer::getError MathRenderer::getError() uses $this, so it should not be called statically. MathInputCheckTexvc should instead call its convertTexvcError method, which constructs a MathRenderer object so it can call its getError method. This code is pretty awful. But this way it won't throw fatal errors all the time. Change-Id: Ic438b307a3b464651363b4cc16698c7d4320b253 --- MathInputCheckTexvc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MathInputCheckTexvc.php b/MathInputCheckTexvc.php index 419df64..804e52b 100644 --- a/MathInputCheckTexvc.php +++ b/MathInputCheckTexvc.php @@ -80,7 +80,7 @@ class MathInputCheckTexvc extends MathInputCheck { if ( strlen( $contents ) === 0 ) { wfDebugLog( 'Math', "TeX check output was empty. \n" ); - $this->lastError = MathRenderer::getError( 'math_unknown_error' ); + $this->lastError = $this->convertTexvcError( $contents ); return false; }