From: skodak Date: Tue, 22 Aug 2006 22:25:30 +0000 (+0000) Subject: debug off level is now 5 instead of 7 to prevent E_WARNING on production sites SC... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=a2b0c57b0a59018c309c39df4edaec38fe1015c2;p=moodle.git debug off level is now 5 instead of 7 to prevent E_WARNING on production sites SC#294; merged from MOODLE_16_STABLE --- diff --git a/admin/configvars.php b/admin/configvars.php index 9849dcc60f..a1e0b87f75 100644 --- a/admin/configvars.php +++ b/admin/configvars.php @@ -69,7 +69,7 @@ class configvar { /// debug unset($options); - $options[7] = $strno; + $options[5] = $strno; $options[15] = $stryes; $misc['debug'] = new configvar (get_string('configdebug', 'admin'), diff --git a/lib/defaults.php b/lib/defaults.php index e9d982eca2..ceeda36d51 100644 --- a/lib/defaults.php +++ b/lib/defaults.php @@ -23,7 +23,7 @@ 'country' => '', 'clamfailureonupload' => 'donothing', 'dbsessions' => false, - 'debug' => 7, + 'debug' => 5, 'defaultrequestedcategory' => 1, 'deleteunconfirmed' => 168, 'denyemailaddresses' => '', diff --git a/lib/setup.php b/lib/setup.php index 42d49d92f5..3c6b6602a6 100644 --- a/lib/setup.php +++ b/lib/setup.php @@ -221,7 +221,7 @@ global $HTTPSPAGEREQUIRED; /// Set error reporting back to normal if (!isset($CFG->debug)) { // empty() would override 0 or false from config.php - $CFG->debug = 7; + $CFG->debug = 5; } error_reporting($CFG->debug);