Skip to content
Permalink
Browse files

Course page blocks are lost when restoring 1.3 and 1.4 backups. MDL-1…

…5803 ; merged from 19_STABLE
  • Loading branch information...
stronk7
stronk7 committed Jul 23, 2008
1 parent 3a0c6cc commit ce503f3923c061be5d980f0abcdf0ceb52c8d8ab
Showing with 1 addition and 1 deletion.
  1. +1 −1 backup/restorelib.php
@@ -801,7 +801,7 @@ function restore_create_blocks($restore, $backup_block_format, $blockinfo, $xml_
// 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();

0 comments on commit ce503f3

Please sign in to comment.
You can’t perform that action at this time.