]> git.mjollnir.org Git - moodle.git/commitdiff
Now course->enrolperiod is supported in backup & restore.
authorstronk7 <stronk7>
Fri, 30 Jul 2004 16:55:38 +0000 (16:55 +0000)
committerstronk7 <stronk7>
Fri, 30 Jul 2004 16:55:38 +0000 (16:55 +0000)
backup/backuplib.php
backup/restorelib.php

index 40b7a17a0835aa0f253d292f219c882319e65547..5eebf8278548adae2680ae61725772d0ca7594a3 100644 (file)
             fwrite ($bf,full_tag("STUDENTS",3,false,$course->students));
             fwrite ($bf,full_tag("GUEST",3,false,$course->guest));
             fwrite ($bf,full_tag("STARTDATE",3,false,$course->startdate));
+            fwrite ($bf,full_tag("ENROLPERIOD",3,false,$course->enrolperiod));
             fwrite ($bf,full_tag("NUMSECTIONS",3,false,$course->numsections));
             //fwrite ($bf,full_tag("SHOWRECENT",3,false,$course->showrecent));    INFO: This is out in 1.3
             fwrite ($bf,full_tag("MAXBYTES",3,false,$course->maxbytes));
index 10d236a02870f1dc615e1e935b7d2aa48573546a..72369d40cc083c58481ece8ae3223a87829bd683 100644 (file)
             $course->students = addslashes($course_header->course_students);
             $course->guest = addslashes($course_header->course_guest);
             $course->startdate = addslashes($course_header->course_startdate);
+            $course->enrolperiod = addslashes($course_header->course_enrolperiod);
             $course->numsections = addslashes($course_header->course_numsections);
             //$course->showrecent = addslashes($course_header->course_showrecent);   INFO: This is out in 1.3
             $course->maxbytes = addslashes($course_header->course_maxbytes);
                         case "STARTDATE":
                             $this->info->course_startdate = $this->getContents();
                             break;
+                        case "ENROLPERIOD":
+                            $this->info->course_enrolperiod = $this->getContents();
+                            break;
                         case "NUMSECTIONS":
                             $this->info->course_numsections = $this->getContents();
                             break;