From: stronk7 Date: Mon, 5 Jan 2004 00:57:23 +0000 (+0000) Subject: Now groupmode and groupmodeforce (course table) are in backup and restore too. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=568d750b41991c66dcee357128c833322478d951;p=moodle.git Now groupmode and groupmodeforce (course table) are in backup and restore too. --- diff --git a/backup/backuplib.php b/backup/backuplib.php index 1cd3f48940..94bc93b530 100644 --- a/backup/backuplib.php +++ b/backup/backuplib.php @@ -560,6 +560,8 @@ 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)); diff --git a/backup/restorelib.php b/backup/restorelib.php index 0c1ac79bbe..b281da810c 100644 --- a/backup/restorelib.php +++ b/backup/restorelib.php @@ -319,6 +319,8 @@ $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); @@ -1268,6 +1270,12 @@ 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;