MDL-17427 - removed old file based logging from ugprade - going to add new upgrade logging later

This commit is contained in:
skodak
2009-01-11 10:18:53 +00:00
parent 4d6d912a77
commit 3e46c66a5d
5 changed files with 9 additions and 98 deletions
-6
View File
@@ -1226,7 +1226,6 @@ function upgrade_blocks_plugins() {
echo '<hr />';
}
} else {
upgrade_log_start();
print_error('cannotdowngrade', 'debug', '', (object)array('oldversion'=>$currblock->version, 'newversion'=>$block->version));
}
@@ -1297,7 +1296,6 @@ function upgrade_blocks_plugins() {
}
if(!empty($notices)) {
upgrade_log_start();
foreach($notices as $notice) {
notify($notice);
}
@@ -1306,8 +1304,6 @@ function upgrade_blocks_plugins() {
// Finally, if we are in the first_install of BLOCKS setup frontpage and admin page blocks
if ($first_install) {
require_once($CFG->dirroot.'/'.$CFG->admin.'/pagelib.php');
upgrade_log_start();
//Iterate over each course - there should be only site course here now
if ($courses = $DB->get_records('course')) {
foreach ($courses as $course) {
@@ -1321,8 +1317,6 @@ function upgrade_blocks_plugins() {
blocks_repopulate_page($page);
}
upgrade_log_finish();
return $updated_blocks;
}