Backup the new course->visible field

This commit is contained in:
moodler
2003-07-21 07:35:58 +00:00
parent a6d82c3f49
commit d4f2e3fb55
2 changed files with 5 additions and 0 deletions
+1
View File
@@ -427,6 +427,7 @@
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
+4
View File
@@ -290,6 +290,7 @@
$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
@@ -1085,6 +1086,9 @@
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;