]> git.mjollnir.org Git - moodle.git/commitdiff
Fixed up some more debug statements
authormoodler <moodler>
Mon, 18 Sep 2006 13:26:58 +0000 (13:26 +0000)
committermoodler <moodler>
Mon, 18 Sep 2006 13:26:58 +0000 (13:26 +0000)
filter/algebra/pix.php
filter/tex/pix.php

index 53a00746bcbe8d4f99539e4830a4606a563339a6..3e34c92f212bd80f3c73c291d174dd33d8285adf 100644 (file)
@@ -94,7 +94,7 @@
     if (file_exists($pathname)) {
         send_file($pathname, $image);
     } else {
-        if ($CFG->debug > 7) {
+        if (debugging()) {
             echo "The shell command<br />$cmd<br />returned status = $status<br />\n";
             echo "Image not found!<br />";
             echo "Please try the <a href=\"$CFG->wwwroot/$CFG->algebrafilterdir/algebradebug.php\">debugging script</a>";
index 084c4812049b11d19038ef818939eeb3aedceb07..37bed2d1d3456a76dcd290a26de64249a674673d 100644 (file)
     if (file_exists($pathname)) {
         send_file($pathname, $image);
     } else {
-        if ($CFG->debug > 7) {
+        if (debugging()) {
             echo "The shell command<br />$cmd<br />returned status = $status<br />\n";
             echo "Image not found!<br />";
             echo "Please try the <a href=\"$CFG->wwwroot/$CFG->texfilterdir/texdebug.php\">debugging script</a>";