diff --git a/backup/backuplib.php b/backup/backuplib.php index e9cd24e433f..30641e329de 100644 --- a/backup/backuplib.php +++ b/backup/backuplib.php @@ -542,6 +542,7 @@ fwrite ($bf,full_tag("STARTDATE",3,false,$course->startdate)); fwrite ($bf,full_tag("NUMSECTIONS",3,false,$course->numsections)); fwrite ($bf,full_tag("SHOWRECENT",3,false,$course->showrecent)); + fwrite ($bf,full_tag("MAXBYTES",3,false,$course->maxbytes)); 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)); diff --git a/backup/restorelib.php b/backup/restorelib.php index 9a4564aa2c5..b5e47a56d02 100644 --- a/backup/restorelib.php +++ b/backup/restorelib.php @@ -317,6 +317,7 @@ $course->startdate = addslashes($course_header->course_startdate); $course->numsections = addslashes($course_header->course_numsections); $course->showrecent = addslashes($course_header->course_showrecent); + $course->maxbytes = addslashes($course_header->course_maxbytes); $course->marker = addslashes($course_header->course_marker); $course->visible = addslashes($course_header->course_visible); $course->timecreated = addslashes($course_header->course_timecreated); @@ -1262,6 +1263,9 @@ case "SHOWRECENT": $this->info->course_showrecent = $this->getContents(); break; + case "MAXBYTES": + $this->info->course_maxbytes = $this->getContents(); + break; case "MARKER": $this->info->course_marker = $this->getContents(); break;