]> git.mjollnir.org Git - moodle.git/commitdiff
Now groups are included in scheduled backups.
authorstronk7 <stronk7>
Thu, 29 Jan 2004 00:07:25 +0000 (00:07 +0000)
committerstronk7 <stronk7>
Thu, 29 Jan 2004 00:07:25 +0000 (00:07 +0000)
I think that we should use the same exact code in backup_execute.php
and backup_scheduled.php to avoid duplicating it in two files !!

backup/backup_scheduled.php

index 2c967a7a7030b64ebba951f7c486d84295098e00..f53be0a55c32960219aa6d533664bf49678d50aa 100644 (file)
@@ -528,6 +528,12 @@ function schedule_backup_course_execute($preferences,$starttime = 0) {
             $status = backup_scales_info($backup_file,$preferences);
         }
 
+        //Print groups info
+        if ($status) {
+            schedule_backup_log($starttime,$preferences->backup_course,"      groups");
+            $status = backup_groups_info($backup_file,$preferences);
+        }
+
         //Module info, this unique function makes all the work!!
         //db export and module fileis copy
         if ($status) {