]> git.mjollnir.org Git - moodle.git/commitdiff
Changes to improve group images
authormoodler <moodler>
Wed, 31 Dec 2003 13:39:59 +0000 (13:39 +0000)
committermoodler <moodler>
Wed, 31 Dec 2003 13:39:59 +0000 (13:39 +0000)
course/group.php
course/groups-summary.html
course/groups.php

index d1028ce5e0ad30e2f1517b73a17cf5e91898fc26..2d3ecc0446b809276a838b060d484a0e99ba612a 100644 (file)
     if ($USER->groupediting) {          // Make an editing form for group information
         print_heading($group->name);
         echo '<div align="center">';
-        print_group_picture($group->id, $course->id, $group->picture, true, false, false);
+        print_group_picture($group, $course->id, true, false, false);
         echo '</div>';
         print_simple_box($group->description, 'center', '50%');
 
     } else {                            // Just display the information 
         print_heading($group->name);
         echo '<div align="center">';
-        print_group_picture($group->id, $course->id, $group->picture, true, false, false);
+        print_group_picture($group, $course->id, true, false, false);
         echo '</div>';
         print_simple_box($group->description, 'center', '50%');
     }
index d8f97da93ce1150e0dae9b0dc4c889979d1a0e01..8304c3a93a0fae01533716bfe435c1921bc81c64 100644 (file)
@@ -1,6 +1,6 @@
 <table align="center" class="generalbox">
  <tr>
-   <td valign="top"><?php echo $t->picture ?></td>
+   <td valign="top" width="100"><?php echo $t->picture ?></td>
    <td><p style="font-size: larger"><?php echo $t->name ?></p>
    <p><?php echo $t->description ?></p>
    <p><ul><?php 
index 220a04812fd3bcdcffc269194edf82635ed62c67..0043f09a9117ca7ebdd076153c9650d9239f6fa3 100644 (file)
@@ -55,7 +55,7 @@
             $isteacher = isteacher($course->id);
             foreach ($groups as $group) {
                 $t = $group;
-                $t->picture = print_group_picture($group->id, $course->id, $group->picture, true, true, true);
+                $t->picture = print_group_picture($group, $course->id, true, true, true);
                 if ($t->users = get_users_in_group($group->id)) {
                     foreach ($t->users as $key => $user) {
                         $t->users[$key]->fullname = fullname($user, $isteacher);