diff --git a/backup/backuplib.php b/backup/backuplib.php index 4a9cc2373212d..ae349c567d785 100644 --- a/backup/backuplib.php +++ b/backup/backuplib.php @@ -568,7 +568,7 @@ function backup_course_start ($bf,$preferences) { 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 33d34aa205a91..1a5ede01905dd 100644 --- a/backup/restorelib.php +++ b/backup/restorelib.php @@ -407,7 +407,7 @@ function restore_create_new_course($restore,&$course_header) { $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 @@ function endElementCourseHeader($parser, $tagName) { 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();