From: moodler Date: Tue, 30 Dec 2003 18:42:58 +0000 (+0000) Subject: Fix up group icon display in certain situations X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=15e06a24446de7aaf62fdf8b49bb55dae8208d22;p=moodle.git Fix up group icon display in certain situations --- 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);