Skip to content

Commit

Permalink
Changed hiddentopics to hiddensections in backup and restore
Browse files Browse the repository at this point in the history
  • Loading branch information
stronk7 committed May 2, 2004
1 parent 7e62329 commit 750024e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion backup/backuplib.php
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions backup/restorelib.php
Expand Up @@ -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.
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 750024e

Please sign in to comment.