From b9380998202828c9008e628dfaded0c30379c0cd Mon Sep 17 00:00:00 2001 From: physikerwelt Date: Thu, 16 Jul 2015 10:33:34 -0400 Subject: [PATCH] Fix: Undefined variable passed to hook * This problem was introduced in I6fad69b5d9b9ca8a7d12c7e410d3ae6180fbddbf * The $render variable is undefined in that context * $this should be used instead Change-Id: I70e0a03e41f0312a458d1dd27b766452ae093093 --- MathMathML.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MathMathML.php b/MathMathML.php index 9487651..432fa52 100644 --- a/MathMathML.php +++ b/MathMathML.php @@ -483,8 +483,8 @@ class MathMathML extends MathRenderer { $this->setMathml( $jsonResult->mml ); } Hooks::run( 'MathRenderingResultRetrieved', - array( &$renderer, - &$jsonResult ) );// Enables debugging of server results + array( &$this, + &$jsonResult ) ); // Enables debugging of server results return true; } else { $this->lastError = $this->getError( 'math_unknown_error', $host );