From c245b6a339a6cf97e0c1612b16a0ac587128ad0e Mon Sep 17 00:00:00 2001 From: moodler Date: Sun, 15 Feb 2004 09:59:16 +0000 Subject: [PATCH] Quick GUI to turn off/on hiding of group pictures --- course/group-edit.html | 11 +++++++++++ course/group.php | 3 ++- lang/en/moodle.php | 1 + 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/course/group-edit.html b/course/group-edit.html index 137f1b3275..3fcac9fafb 100644 --- a/course/group-edit.html +++ b/course/group-edit.html @@ -16,6 +16,17 @@ + +

: + hidepicture, ""); + ?> + + + maxbytes, $course->maxbytes); if (!empty($CFG->gdversion) and $maxbytes) { diff --git a/course/group.php b/course/group.php index 983353af9c..e7a961c533 100644 --- a/course/group.php +++ b/course/group.php @@ -71,8 +71,9 @@ $group->picture = save_profile_image($group->id, $filename, 'groups'); } } - $group->name = $form->name; + $group->name = $form->name; $group->description = $form->description; + $group->hidepicture = $form->hidepicture; if (!update_record("groups", $group)) { notify("A strange error occurred while trying to save "); } else { diff --git a/lang/en/moodle.php b/lang/en/moodle.php index 0b8f727fa9..708f07e89b 100644 --- a/lang/en/moodle.php +++ b/lang/en/moodle.php @@ -427,6 +427,7 @@ $string['helptext'] = 'How to write text'; $string['helpwiki'] = 'How to write Wiki text'; $string['helpwriting'] = 'Write carefully'; $string['hide'] = 'Hide'; +$string['hidepicture'] = 'Hide picture'; $string['hits'] = 'Hits'; $string['hitsoncourse'] = 'Hits on $a->coursename by $a->username'; $string['hitsoncoursetoday'] = 'Today\'s hits on $a->coursename by $a->username'; -- 2.39.5