From: moodler Date: Mon, 18 Sep 2006 13:36:17 +0000 (+0000) Subject: Fixing debugging X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=a229726a11cc8122063b794c397edf933e42f908;p=moodle.git Fixing debugging --- diff --git a/admin/utfdbmigrate.php b/admin/utfdbmigrate.php index 3eff4deb9b..d17118d320 100755 --- a/admin/utfdbmigrate.php +++ b/admin/utfdbmigrate.php @@ -221,7 +221,7 @@ function db_migrate2utf8(){ //Eloy: Perhaps some type of limit parameter here //table/field/recordid) global $db, $CFG, $dbtablename, $fieldname, $record, $processedrecords; - $debug = ($CFG->debug > 7); + $debug = debugging(); if ($CFG->dbtype == 'mysql') { check_and_create_backup_dir(BACKUP_UNIQUE_CODE); //Create the backup temp dir diff --git a/admin/xmldb/index.php b/admin/xmldb/index.php index 5cbde18cba..3c08a6ce80 100644 --- a/admin/xmldb/index.php +++ b/admin/xmldb/index.php @@ -130,7 +130,7 @@ } if ($xmldb_action->getDoesGenerate() != ACTION_GENERATE_XML) { - if ($CFG->debug > 7) { + if (debugging()) { ///print_object($XMLDB); } }