From 15e06a24446de7aaf62fdf8b49bb55dae8208d22 Mon Sep 17 00:00:00 2001 From: moodler Date: Tue, 30 Dec 2003 18:42:58 +0000 Subject: [PATCH] Fix up group icon display in certain situations --- course/format/social/format.php | 3 ++- course/format/topics/format.php | 3 ++- course/format/weeks/format.php | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/course/format/social/format.php b/course/format/social/format.php index 18a219da5a..a7238aecc9 100644 --- a/course/format/social/format.php +++ b/course/format/social/format.php @@ -20,10 +20,11 @@ if ($course->groupmode or !$course->groupmodeforce) { if (isteacheredit($course->id) or $course->groupmode == VISIBLEGROUPS) { $moddata[]="id\">$strgroups"; + $modicon[]="pixpath/i/group.gif\" height=16 width=16 alt=\"\">"; } else if ($currentgroup = get_current_group($course->id)) { $moddata[]="id\">$strgroupmy"; + $modicon[]="pixpath/i/group.gif\" height=16 width=16 alt=\"\">"; } - $modicon[]="pixpath/i/group.gif\" height=16 width=16 alt=\"\">"; } $fullname = fullname($USER, true); diff --git a/course/format/topics/format.php b/course/format/topics/format.php index e44e35104c..7b2eaf6fb3 100644 --- a/course/format/topics/format.php +++ b/course/format/topics/format.php @@ -61,10 +61,11 @@ if ($course->groupmode or !$course->groupmodeforce) { if (isteacheredit($course->id) or $course->groupmode == VISIBLEGROUPS) { $moddata[]="id\">$strgroups"; + $modicon[]="pixpath/i/group.gif\" height=16 width=16 alt=\"\">"; } else if ($currentgroup = get_current_group($course->id)) { $moddata[]="id\">$strgroupmy"; + $modicon[]="pixpath/i/group.gif\" height=16 width=16 alt=\"\">"; } - $modicon[]="pixpath/i/group.gif\" height=16 width=16 alt=\"\">"; } $fullname = fullname($USER, true); diff --git a/course/format/weeks/format.php b/course/format/weeks/format.php index 084157221d..83f68371df 100644 --- a/course/format/weeks/format.php +++ b/course/format/weeks/format.php @@ -49,10 +49,11 @@ if ($course->groupmode or !$course->groupmodeforce) { if (isteacheredit($course->id) or $course->groupmode == VISIBLEGROUPS) { $moddata[]="id\">$strgroups"; + $modicon[]="pixpath/i/group.gif\" height=16 width=16 alt=\"\">"; } else if ($currentgroup = get_current_group($course->id)) { $moddata[]="id\">$strgroupmy"; + $modicon[]="pixpath/i/group.gif\" height=16 width=16 alt=\"\">"; } - $modicon[]="pixpath/i/group.gif\" height=16 width=16 alt=\"\">"; } $fullname = fullname($USER, true); -- 2.39.5