From: stronk7 Date: Wed, 23 Jul 2008 22:47:47 +0000 (+0000) Subject: Course page blocks are lost when restoring 1.3 and 1.4 backups. MDL-15803 ; merged... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=ce503f3923c061be5d980f0abcdf0ceb52c8d8ab;p=moodle.git Course page blocks are lost when restoring 1.3 and 1.4 backups. MDL-15803 ; merged from 19_STABLE --- diff --git a/backup/restorelib.php b/backup/restorelib.php index 95ffc51ddb..8f3ae4a08f 100644 --- a/backup/restorelib.php +++ b/backup/restorelib.php @@ -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();