]> git.mjollnir.org Git - moodle.git/commitdiff
Backup the new course->visible field
authormoodler <moodler>
Mon, 21 Jul 2003 07:35:58 +0000 (07:35 +0000)
committermoodler <moodler>
Mon, 21 Jul 2003 07:35:58 +0000 (07:35 +0000)
backup/backuplib.php
backup/restorelib.php

index 920403e1086dba55b9927e2994049d684aa0f632..ab4e2680be97a0dc806c94ab0b1728d031f75191 100644 (file)
             fwrite ($bf,full_tag("NUMSECTIONS",3,false,$course->numsections));
             fwrite ($bf,full_tag("SHOWRECENT",3,false,$course->showrecent));
             fwrite ($bf,full_tag("MARKER",3,false,$course->marker));
+            fwrite ($bf,full_tag("VISIBLE",3,false,$course->visible));
             fwrite ($bf,full_tag("TIMECREATED",3,false,$course->timecreated));
             $status = fwrite ($bf,full_tag("TIMEMODIFIED",3,false,$course->timemodified));
             //Print header end
index b7eec5e04ebbc973032c10218e3401671d57ad03..32eaf8311ff2421f494614e647b3dbdc8ade35be 100644 (file)
             $course->numsections = addslashes($course_header->course_numsections);
             $course->showrecent = addslashes($course_header->course_showrecent);
             $course->marker = addslashes($course_header->course_marker);
+            $course->visible = addslashes($course_header->course_visible);
             $course->timecreated = addslashes($course_header->course_timecreated);
             $course->timemodified = addslashes($course_header->course_timemodified);
             //Now insert the record
                         case "MARKER":
                             $this->info->course_marker = $this->getContents();
                             break;
+                        case "VISIBLE":
+                            $this->info->course_visible = $this->getContents();
+                            break;
                         case "TIMECREATED":
                             $this->info->course_timecreated = $this->getContents();
                             break;