From 4fd7ccc0fe76601260999bad093d70a185b549ae Mon Sep 17 00:00:00 2001 From: moodler Date: Mon, 30 Dec 2002 03:24:07 +0000 Subject: [PATCH] New "debug" variable to turn debugging on and off --- lib/defaults.php | 3 ++- lib/setup.php | 8 ++++---- version.php | 2 +- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/lib/defaults.php b/lib/defaults.php index 6bcf6e356b..6a67875b2e 100644 --- a/lib/defaults.php +++ b/lib/defaults.php @@ -23,7 +23,8 @@ "maxeditingtime" => 1800, "changepassword" => true, "country" => "", - "guestloginbutton" => 1 + "guestloginbutton" => 1, + "debug" => 7 ); ?> diff --git a/lib/setup.php b/lib/setup.php index 0f43c431ca..d4c5288f4b 100644 --- a/lib/setup.php +++ b/lib/setup.php @@ -31,10 +31,6 @@ require("$CFG->libdir/moodlelib.php"); // Other general-purpose functions -/// Set error reporting back to normal - error_reporting(7); - - /// Load up any configuration from the config table if ($configs = get_records("config")) { @@ -48,6 +44,10 @@ } +/// Set error reporting back to normal + error_reporting($CFG->debug); + + /// Location of standard files $CFG->wordlist = "$CFG->libdir/wordlist.txt"; diff --git a/version.php b/version.php index ed68eb78ab..508e1e93ff 100644 --- a/version.php +++ b/version.php @@ -5,7 +5,7 @@ // database to determine whether upgrades should // be performed (see lib/db/*.php) -$version = 2002122700; // The current version is a date (YYYYMMDDXX) +$version = 2002123000; // The current version is a date (YYYYMMDDXX) $release = "1.0.8 dev"; // User-friendly version number -- 2.39.5