From: stronk7 Date: Tue, 7 Oct 2003 11:58:56 +0000 (+0000) Subject: Now course->maxbytes is supported in backup/restore. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=6ecc3ea8d3e52d14eb0d49511aec88d91f05540d;p=moodle.git Now course->maxbytes is supported in backup/restore. --- diff --git a/backup/backuplib.php b/backup/backuplib.php index e9cd24e433..30641e329d 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 9a4564aa2c..b5e47a56d0 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;