Permalink
Browse files

New "debug" variable to turn debugging on and off

  • Loading branch information...
1 parent 932e472 commit 4fd7ccc0fe76601260999bad093d70a185b549ae moodler committed Dec 30, 2002
Showing with 7 additions and 6 deletions.
  1. +2 −1 lib/defaults.php
  2. +4 −4 lib/setup.php
  3. +1 −1 version.php
View
@@ -23,7 +23,8 @@
"maxeditingtime" => 1800,
"changepassword" => true,
"country" => "",
- "guestloginbutton" => 1
+ "guestloginbutton" => 1,
+ "debug" => 7
);
?>
View
@@ -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";
View
@@ -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

0 comments on commit 4fd7ccc

Please sign in to comment.