]> git.mjollnir.org Git - moodle.git/commitdiff
Now groupmode and groupmodeforce (course table) are in backup and restore too.
authorstronk7 <stronk7>
Mon, 5 Jan 2004 00:57:23 +0000 (00:57 +0000)
committerstronk7 <stronk7>
Mon, 5 Jan 2004 00:57:23 +0000 (00:57 +0000)
backup/backuplib.php
backup/restorelib.php

index 1cd3f48940b3517c0116aa6b8126a44987480486..94bc93b530d4e6ebaba231b639b2a3d0114a4474 100644 (file)
             fwrite ($bf,full_tag("SHOWRECENT",3,false,$course->showrecent));
             fwrite ($bf,full_tag("MAXBYTES",3,false,$course->maxbytes));
             fwrite ($bf,full_tag("SHOWREPORTS",3,false,$course->showreports));
+            fwrite ($bf,full_tag("GROUPMODE",3,false,$course->groupmode));
+            fwrite ($bf,full_tag("GROUPMODEFORCE",3,false,$course->groupmodeforce));
             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 0c1ac79bbe61b57ed6d98cc58c0ada490f44fb6c..b281da810c271f1602e4b5fcb1e54a70423fda10 100644 (file)
             $course->showrecent = addslashes($course_header->course_showrecent);
             $course->maxbytes = addslashes($course_header->course_maxbytes);
             $course->showreports = addslashes($course_header->course_showreports);
+            $course->groupmode = addslashes($course_header->course_groupmode);
+            $course->groupmodeforce = addslashes($course_header->course_groupmodeforce);
             $course->marker = addslashes($course_header->course_marker);
             $course->visible = addslashes($course_header->course_visible);
             $course->timecreated = addslashes($course_header->course_timecreated);
                         case "SHOWREPORTS":
                             $this->info->course_showreports = $this->getContents();
                             break;
+                        case "GROUPMODE":
+                            $this->info->course_groupmode = $this->getContents();
+                            break;
+                        case "GROUPMODEFORCE":
+                            $this->info->course_groupmodeforce = $this->getContents();
+                            break;
                         case "MARKER":
                             $this->info->course_marker = $this->getContents();
                             break;