From d4f2e3fb559ae60bf685f33c584a71a92817ea65 Mon Sep 17 00:00:00 2001 From: moodler Date: Mon, 21 Jul 2003 07:35:58 +0000 Subject: [PATCH] Backup the new course->visible field --- backup/backuplib.php | 1 + backup/restorelib.php | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/backup/backuplib.php b/backup/backuplib.php index 920403e108..ab4e2680be 100644 --- a/backup/backuplib.php +++ b/backup/backuplib.php @@ -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 diff --git a/backup/restorelib.php b/backup/restorelib.php index b7eec5e04e..32eaf8311f 100644 --- a/backup/restorelib.php +++ b/backup/restorelib.php @@ -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; -- 2.39.5