]> git.mjollnir.org Git - moodle.git/commitdiff
Course page blocks are lost when restoring 1.3 and 1.4 backups. MDL-15803 ; merged...
authorstronk7 <stronk7>
Wed, 23 Jul 2008 22:47:47 +0000 (22:47 +0000)
committerstronk7 <stronk7>
Wed, 23 Jul 2008 22:47:47 +0000 (22:47 +0000)
backup/restorelib.php

index 95ffc51ddbe0378a9b9d5b0f13583f972b271a73..8f3ae4a08f4939c339e4f5a878d9f9db71c191be 100644 (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();