From c1177e371fbc555e96a777eb09debf2f76d68da9 Mon Sep 17 00:00:00 2001 From: moodler Date: Thu, 4 Nov 2004 08:12:33 +0000 Subject: [PATCH] Fixed a comment without // at the start in block restoring --- backup/restore_execute.html | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/backup/restore_execute.html b/backup/restore_execute.html index e2a9b31edd..7983b23191 100644 --- a/backup/restore_execute.html +++ b/backup/restore_execute.html @@ -114,16 +114,15 @@ //If we are deleting and bringing into a course or making a new course, same situation if($restore->restoreto == 0 || $restore->restoreto == 2) { delete_records('block_instance', 'pageid', $course_header->course_id, 'pagetype', MOODLE_PAGE_COURSE); - if(empty($info->backup_block_format)) { - This is a backup from Moodle < 1.5 - if(empty($course_header->blockinfo)) { + if (empty($info->backup_block_format)) { // This is a backup from Moodle < 1.5 + if (empty($course_header->blockinfo)) { // Looks like it's from Moodle < 1.3. Let's give the course default blocks... $newpage = new stdClass; $newpage->type = MOODLE_PAGE_COURSE; $newpage->id = $course_header->course_id; blocks_repopulate_page($newpage); - } - else { + + } else { // We just have a blockinfo field, this is a legacy 1.4 or 1.3 backup $blockrecords = get_records_select('block', '', '', 'name, id'); $temp_blocks_l = array(); -- 2.39.5