]> git.mjollnir.org Git - moodle.git/commitdiff
New "debug" variable to turn debugging on and off
authormoodler <moodler>
Mon, 30 Dec 2002 03:24:07 +0000 (03:24 +0000)
committermoodler <moodler>
Mon, 30 Dec 2002 03:24:07 +0000 (03:24 +0000)
lib/defaults.php
lib/setup.php
version.php

index 6bcf6e356b87408eb08d721dc674ecffc66e901b..6a67875b2e843721f0f59b1aee777271bb11bd4b 100644 (file)
@@ -23,7 +23,8 @@
        "maxeditingtime"   =>  1800,
        "changepassword"   =>  true,
        "country"          => "",
-       "guestloginbutton" =>  1
+       "guestloginbutton" =>  1,
+       "debug"            =>  7
     );
 
 ?>
index 0f43c431cac8c1ca2a55bb15b05e5dbbdbabebb5..d4c5288f4bde6fc1101447d938fb2f9649504dee 100644 (file)
     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")) {
     }
 
 
+/// Set error reporting back to normal
+    error_reporting($CFG->debug);   
+
+
 /// Location of standard files
 
     $CFG->wordlist    = "$CFG->libdir/wordlist.txt";
index ed68eb78ab907d4c2f90bb324f9c13efac10535f..508e1e93ff15173722f076aec69328987c85733f 100644 (file)
@@ -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