]> git.mjollnir.org Git - moodle.git/commitdiff
Now course->maxbytes is supported in backup/restore.
authorstronk7 <stronk7>
Tue, 7 Oct 2003 11:58:56 +0000 (11:58 +0000)
committerstronk7 <stronk7>
Tue, 7 Oct 2003 11:58:56 +0000 (11:58 +0000)
backup/backuplib.php
backup/restorelib.php

index e9cd24e433f49796e22c65dd5a1f7c91f89fe2a1..30641e329dec083e4a76c38fc6b46c91b0524f95 100644 (file)
             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));
index 9a4564aa2c58d1dc25c78ef3cb6b04c0cc740cea..b5e47a56d02d5ac70d81b315f2a8dabee4c08513 100644 (file)
             $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);
                         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;