From 84d531cca065b202eddb8bf2ec298533d3da16c2 Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Fri, 26 Apr 2013 14:14:07 +0200 Subject: [PATCH] debug log was attempting to show a Blob object A wfDebugLog() was attempting to concatenate a string with a Blob object which does not support conversion to a string. Since that was used to show some hash, display the current string hash instead. Furthermore the input-hash, which can be calculated from the TeX input string was displayed, which is not very helpful. The variable hash is calculated by texvc and can be used to search for the rendered image in the filesystem. Change-Id: I9943fd51d3021bf2d62a29f33de0858803763f86 --- MathRenderer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MathRenderer.php b/MathRenderer.php index 1d60332..e81b02f 100644 --- a/MathRenderer.php +++ b/MathRenderer.php @@ -159,7 +159,7 @@ abstract class MathRenderer { } else { $outmd5_sql = ''; } - wfDebugLog( "Math", 'store entry for $' . $this->tex . '$ in database (hash:' . $this->getInputHash() . ')\n' ); + wfDebugLog( "Math", 'store entry for $' . $this->tex . '$ in database (hash:' . $this->hash . ')\n' ); $dbw->replace( 'math', array( 'math_inputhash' ),