]> git.mjollnir.org Git - moodle.git/commitdiff
On group images use description in the title ...
authormoodler <moodler>
Thu, 1 Jan 2004 08:36:53 +0000 (08:36 +0000)
committermoodler <moodler>
Thu, 1 Jan 2004 08:36:53 +0000 (08:36 +0000)
lib/weblib.php

index 085847d0b6150bc87e8adb85b0587e1fbf5776ac..beccbee1449223a40e667b2fb48a224d9d6e912d 100644 (file)
@@ -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 .= "<img align=\"absmiddle\" src=\"$CFG->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 .= "<img align=\"absmiddle\" src=\"$pngsrc\" border=\"0\" width=\"$size\" height=\"$size\" ".
-                       " alt=\"\" title=\"$group->name\" />";
+                       " alt=\"\" title=\"$title\" />";
         }
     } else {                // Print nothing
         $output .= "";