]> git.mjollnir.org Git - moodle.git/commitdiff
Fixed a comment without // at the start in block restoring
authormoodler <moodler>
Thu, 4 Nov 2004 08:12:33 +0000 (08:12 +0000)
committermoodler <moodler>
Thu, 4 Nov 2004 08:12:33 +0000 (08:12 +0000)
backup/restore_execute.html

index e2a9b31edd1c0cba1e0e3f57336f5a5eff15facc..7983b2319165837cb45e204fe848637ed33eaf33 100644 (file)
         //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();