From 779ef7fc0b2c7e416e651e28073963a425837d03 Mon Sep 17 00:00:00 2001 From: moodler Date: Mon, 18 Sep 2006 13:26:58 +0000 Subject: [PATCH] Fixed up some more debug statements --- filter/algebra/pix.php | 2 +- filter/tex/pix.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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"; -- 2.39.5