From 52552be03dca8b2f8bbc42273d64c02ab130cc32 Mon Sep 17 00:00:00 2001 From: stronk7 Date: Fri, 30 Jul 2004 16:55:38 +0000 Subject: [PATCH] Now course->enrolperiod is supported in backup & restore. --- backup/backuplib.php | 1 + backup/restorelib.php | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/backup/backuplib.php b/backup/backuplib.php index 40b7a17a083..5eebf827854 100644 --- a/backup/backuplib.php +++ b/backup/backuplib.php @@ -569,6 +569,7 @@ 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)); diff --git a/backup/restorelib.php b/backup/restorelib.php index 10d236a0287..72369d40cc0 100644 --- a/backup/restorelib.php +++ b/backup/restorelib.php @@ -548,6 +548,7 @@ $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); @@ -2215,6 +2216,9 @@ 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;