From d2b5f1e8bf55aee7e6c95090d6c0e0b39d1d267e Mon Sep 17 00:00:00 2001 From: stronk7 Date: Tue, 27 Apr 2004 19:51:12 +0000 Subject: [PATCH] event->format is now in backup & restore. --- backup/backuplib.php | 1 + backup/restorelib.php | 1 + 2 files changed, 2 insertions(+) diff --git a/backup/backuplib.php b/backup/backuplib.php index 19dd0dc17f..4a9cc23732 100644 --- a/backup/backuplib.php +++ b/backup/backuplib.php @@ -990,6 +990,7 @@ 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)); diff --git a/backup/restorelib.php b/backup/restorelib.php index 7a68725244..ff6777fc4b 100644 --- a/backup/restorelib.php +++ b/backup/restorelib.php @@ -1047,6 +1047,7 @@ //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']['#']); -- 2.39.5