From: moodler Date: Thu, 1 Jan 2004 08:36:53 +0000 (+0000) Subject: On group images use description in the title ... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=02759cb587ff74855203f037c3ddb50cc2290e10;p=moodle.git On group images use description in the title ... --- 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 .= "";