From: moodler Date: Mon, 18 Sep 2006 13:26:58 +0000 (+0000) Subject: Fixed up some more debug statements X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=779ef7fc0b2c7e416e651e28073963a425837d03;p=moodle.git Fixed up some more debug statements --- diff --git a/filter/algebra/pix.php b/filter/algebra/pix.php index 53a00746bc..3e34c92f21 100644 --- a/filter/algebra/pix.php +++ b/filter/algebra/pix.php @@ -94,7 +94,7 @@ if (file_exists($pathname)) { send_file($pathname, $image); } else { - if ($CFG->debug > 7) { + if (debugging()) { echo "The shell command
$cmd
returned status = $status
\n"; echo "Image not found!
"; echo "Please try the wwwroot/$CFG->algebrafilterdir/algebradebug.php\">debugging script"; diff --git a/filter/tex/pix.php b/filter/tex/pix.php index 084c481204..37bed2d1d3 100644 --- a/filter/tex/pix.php +++ b/filter/tex/pix.php @@ -113,7 +113,7 @@ if (file_exists($pathname)) { send_file($pathname, $image); } else { - if ($CFG->debug > 7) { + if (debugging()) { echo "The shell command
$cmd
returned status = $status
\n"; echo "Image not found!
"; echo "Please try the wwwroot/$CFG->texfilterdir/texdebug.php\">debugging script";