From 02759cb587ff74855203f037c3ddb50cc2290e10 Mon Sep 17 00:00:00 2001 From: moodler Date: Thu, 1 Jan 2004 08:36:53 +0000 Subject: [PATCH] On group images use description in the title ... --- lib/weblib.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/weblib.php b/lib/weblib.php index 085847d0b6..beccbee144 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -1144,14 +1144,15 @@ function print_group_picture($group, $courseid, $large=false, $returnstring=fals } else { $pngsrc = "$CFG->wwwroot/user/pixgroup.php?file=/$group->id/$file.png"; } + $title = s($group->description); if ($recentIE) { // work around the HORRIBLE bug IE has with alpha transparencies $output .= "pixpath/spacer.gif\" width=\"$size\" height=\"$size\"". " border=\"0\" style=\"width: {$size}px; height: {$size}px; ". " filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='$pngsrc', sizingMethod='scale') ". - " alt=\"\" title=\"$group->name\" />"; + " alt=\"\" title=\"$title\" />"; } else { $output .= "\"\"name\" />"; + " alt=\"\" title=\"$title\" />"; } } else { // Print nothing $output .= ""; -- 2.39.5