From 8a792ed10f492336eb9d3cd03cec85914ec299a3 Mon Sep 17 00:00:00 2001 From: stronk7 Date: Sun, 30 Jan 2005 12:12:06 +0000 Subject: [PATCH] group->password is now supported --- backup/CHANGES_14_15.txt | 2 +- backup/backuplib.php | 1 + backup/restorelib.php | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/backup/CHANGES_14_15.txt b/backup/CHANGES_14_15.txt index 54df8b31b2..a7a3675c4e 100644 --- a/backup/CHANGES_14_15.txt +++ b/backup/CHANGES_14_15.txt @@ -14,7 +14,7 @@ Now I show the specific detailed status of every item in the process: 4. DONE: user_students->enrol (analyse and proceed). 5. DONE: user_teachers->enrol (analyse and proceed). 6. DONE: user->policyagreed (analyse and proceed). - 7. TODO: groups->password + 7. DONE: groups->password 8. TODO: assignment->emailteachers 9. TODO: exercise->usepassword and exercise->password 10. TODO: exercise_assessments->generalcomment and teachercomment diff --git a/backup/backuplib.php b/backup/backuplib.php index 58f4674475..5b36dc9b26 100644 --- a/backup/backuplib.php +++ b/backup/backuplib.php @@ -1108,6 +1108,7 @@ fwrite ($bf,full_tag("COURSEID",4,false,$group->courseid)); fwrite ($bf,full_tag("NAME",4,false,$group->name)); fwrite ($bf,full_tag("DESCRIPTION",4,false,$group->description)); + fwrite ($bf,full_tag("PASSWORD",4,false,$group->password)); fwrite ($bf,full_tag("LANG",4,false,$group->lang)); fwrite ($bf,full_tag("PICTURE",4,false,$group->picture)); fwrite ($bf,full_tag("HIDEPICTURE",4,false,$group->hidepicture)); diff --git a/backup/restorelib.php b/backup/restorelib.php index 0d4d9fa27d..5ff936b7ba 100644 --- a/backup/restorelib.php +++ b/backup/restorelib.php @@ -1241,6 +1241,7 @@ $gro->courseid = backup_todb($info['GROUP']['#']['COURSEID']['0']['#']); $gro->name = backup_todb($info['GROUP']['#']['NAME']['0']['#']); $gro->description = backup_todb($info['GROUP']['#']['DESCRIPTION']['0']['#']); + $gro->password = backup_todb($info['GROUP']['#']['PASSWORD']['0']['#']); $gro->lang = backup_todb($info['GROUP']['#']['LANG']['0']['#']); $gro->picture = backup_todb($info['GROUP']['#']['PICTURE']['0']['#']); $gro->hidepicture = backup_todb($info['GROUP']['#']['HIDEPICTURE']['0']['#']); -- 2.39.5