From ce359507868aae08a1600939f36c43c044b249a7 Mon Sep 17 00:00:00 2001 From: skodak Date: Sun, 1 Feb 2009 16:42:56 +0000 Subject: [PATCH] MDL-17427 fixed regressions --- admin/index.php | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/admin/index.php b/admin/index.php index 2419c3ede14..158ba8b86a7 100644 --- a/admin/index.php +++ b/admin/index.php @@ -98,9 +98,6 @@ if (!$maintables) { /// hide errors from headers in case debug enabled in config.php - $origdebug = $CFG->debug; - $CFG->debug = DEBUG_MINIMAL; - error_reporting($CFG->debug); /// fake some settings $CFG->docroot = 'http://docs.moodle.org'; @@ -135,7 +132,7 @@ print_upgrade_reload("index.php?agreelicense=1&lang=$CFG->lang"); } else { notify(get_string('environmentok', 'admin'), 'notifysuccess'); - print_continue("index.php?agreelicense=1confirmrelease=1&lang=$CFG->lang"); + print_continue("index.php?agreelicense=1&confirmrelease=1&lang=$CFG->lang"); } print_footer('none'); @@ -148,10 +145,6 @@ print_header($strdatabasesetup, $strdatabasesetup, $navigation, "", upgrade_get_javascript(), false, " ", " "); - /// return to original debugging level - $CFG->debug = $origdebug; - error_reporting($CFG->debug); - if (!$DB->setup_is_unicodedb()) { if (!$DB->change_db_encoding()) { // If could not convert successfully, throw error, and prevent installation @@ -204,11 +197,6 @@ $a->newversion = "$release ($version)"; $strdatabasechecking = get_string("databasechecking", "", $a); - // hide errors from headers in case debug is enabled - $origdebug = $CFG->debug; - $CFG->debug = DEBUG_MINIMAL; - error_reporting($CFG->debug); - if (empty($confirmupgrade)) { $navigation = build_navigation(array(array('name'=>$strdatabasechecking, 'link'=>null, 'type'=>'misc'))); print_header($strdatabasechecking, $stradministration, $navigation, "", "", false, " ", " "); @@ -258,10 +246,6 @@ die(); } else { - /// return to original debugging level - $CFG->debug = $origdebug; - error_reporting($CFG->debug); - /// Upgrade current language pack if we can if (empty($CFG->skiplangupgrade)) { upgrade_language_pack();