]> git.mjollnir.org Git - moodle.git/commitdiff
event->format is now in backup & restore.
authorstronk7 <stronk7>
Tue, 27 Apr 2004 19:51:12 +0000 (19:51 +0000)
committerstronk7 <stronk7>
Tue, 27 Apr 2004 19:51:12 +0000 (19:51 +0000)
backup/backuplib.php
backup/restorelib.php

index 19dd0dc17feb89c06ecd1bd6ea03e4aee05b4997..4a9cc2373212d507e5b23c06e0bbd9201349f1f0 100644 (file)
                 fwrite ($bf,full_tag("ID",4,false,$event->id));
                 fwrite ($bf,full_tag("NAME",4,false,$event->name));
                 fwrite ($bf,full_tag("DESCRIPTION",4,false,$event->description));
+                fwrite ($bf,full_tag("FORMAT",4,false,$event->format));
                 fwrite ($bf,full_tag("GROUPID",4,false,$event->groupid));
                 fwrite ($bf,full_tag("USERID",4,false,$event->userid));
                 fwrite ($bf,full_tag("EVENTTYPE",4,false,$event->eventtype));
index 7a68725244696b6bc22cf19561977b209d0ef959..ff6777fc4b61f12154ae16aa46d5f3048f962824 100644 (file)
                         //Now build the EVENT record structure
                         $eve->name = backup_todb($info['EVENT']['#']['NAME']['0']['#']);
                         $eve->description = backup_todb($info['EVENT']['#']['DESCRIPTION']['0']['#']);
+                        $eve->format = backup_todb($info['EVENT']['#']['FORMAT']['0']['#']);
                         $eve->courseid = $restore->course_id;
                         $eve->groupid = backup_todb($info['EVENT']['#']['GROUPID']['0']['#']);
                         $eve->userid = backup_todb($info['EVENT']['#']['USERID']['0']['#']);