From 750024e833c97f533e34db8e9189c51a92d8e3df Mon Sep 17 00:00:00 2001 From: stronk7 Date: Sun, 2 May 2004 22:34:13 +0000 Subject: [PATCH] Changed hiddentopics to hiddensections in backup and restore --- backup/backuplib.php | 2 +- backup/restorelib.php | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/backup/backuplib.php b/backup/backuplib.php index 4a9cc23732..ae349c567d 100644 --- a/backup/backuplib.php +++ b/backup/backuplib.php @@ -568,7 +568,7 @@ fwrite ($bf,full_tag("LANG",3,false,$course->lang)); fwrite ($bf,full_tag("MARKER",3,false,$course->marker)); fwrite ($bf,full_tag("VISIBLE",3,false,$course->visible)); - fwrite ($bf,full_tag("HIDDENTOPICS",3,false,$course->hiddentopics)); + fwrite ($bf,full_tag("HIDDENSECTIONS",3,false,$course->hiddensections)); 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 33d34aa205..1a5ede0190 100644 --- a/backup/restorelib.php +++ b/backup/restorelib.php @@ -407,7 +407,7 @@ $course->lang = addslashes($course_header->course_lang); $course->marker = addslashes($course_header->course_marker); $course->visible = addslashes($course_header->course_visible); - $course->hiddentopics = addslashes($course_header->course_hiddentopics); + $course->hiddensections = addslashes($course_header->course_hiddensections); $course->timecreated = addslashes($course_header->course_timecreated); $course->timemodified = addslashes($course_header->course_timemodified); //Adjust blockinfo field. @@ -2078,8 +2078,8 @@ case "VISIBLE": $this->info->course_visible = $this->getContents(); break; - case "HIDDENTOPICS": - $this->info->course_hiddentopics = $this->getContents(); + case "HIDDENSECTIONS": + $this->info->course_hiddensections = $this->getContents(); break; case "TIMECREATED": $this->info->course_timecreated = $this->getContents(); -- 2.39.5