Skip to content

Commit

Permalink
New "debug" variable to turn debugging on and off
Browse files Browse the repository at this point in the history
  • Loading branch information
moodler committed Dec 30, 2002
1 parent 932e472 commit 4fd7ccc
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
3 changes: 2 additions & 1 deletion lib/defaults.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
"maxeditingtime" => 1800,
"changepassword" => true,
"country" => "",
"guestloginbutton" => 1
"guestloginbutton" => 1,
"debug" => 7
);

?>
8 changes: 4 additions & 4 deletions lib/setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -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")) {
Expand All @@ -48,6 +44,10 @@
}


/// Set error reporting back to normal
error_reporting($CFG->debug);


/// Location of standard files

$CFG->wordlist = "$CFG->libdir/wordlist.txt";
Expand Down
2 changes: 1 addition & 1 deletion version.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.