Now course->maxbytes is supported in backup/restore.

This commit is contained in:
stronk7 2003-10-07 11:58:56 +00:00
parent c3235459d0
commit 6ecc3ea8d3
2 changed files with 5 additions and 0 deletions

View file

@ -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));

View file

@ -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;