Course page blocks are lost when restoring 1.3 and 1.4 backups. MDL-15803 ; merged from 19_STABLE

This commit is contained in:
stronk7
2008-07-23 22:47:47 +00:00
parent 3a0c6cca33
commit ce503f3923
+1 -1
View File
@@ -801,7 +801,7 @@ define('RESTORE_GROUPS_GROUPINGS', 3);
// Looks like it's from Moodle < 1.3. Let's give the course default blocks...
$newpage = page_create_object(PAGE_COURSE_VIEW, $restore->course_id);
blocks_repopulate_page($newpage);
} else if (!empty($CFG->showblocksonmodpages)) {
} else {
// We just have a blockinfo field, this is a legacy 1.4 or 1.3 backup
$blockrecords = $DB->get_records('block', null, '', 'name, id');
$temp_blocks_l = array();