]> git.mjollnir.org Git - moodle.git/commitdiff
fix for MDL-7483, add table header to user picture on participants listing
authortoyomoyo <toyomoyo>
Mon, 13 Nov 2006 03:43:12 +0000 (03:43 +0000)
committertoyomoyo <toyomoyo>
Mon, 13 Nov 2006 03:43:12 +0000 (03:43 +0000)
lang/en_utf8/moodle.php
lib/tablelib.php
user/index.php

index 82119428bfd97300a4c3e25b23257e95523a9e41..8da55c08953a1dc9fb4779a7747732bec9c7c994 100644 (file)
@@ -1401,6 +1401,7 @@ $string['usernameemailmatch'] = 'The username and email address do not relate to
 $string['usernameexists'] = 'This username already exists, choose another';
 $string['usernamenotfound'] = 'The username was not found in the database';
 $string['usernotconfirmed'] = 'Could not confirm $a';
+$string['userpic'] = 'User picture';
 $string['userprofilefor'] = 'User profile for $a';
 $string['users'] = 'Users';
 $string['usersnew'] = 'New users';
index 6de009e2b5edbcd533936c6c849790b722b4f515..3a38aae3e3e8189449680253c23e87435be14a5a 100644 (file)
@@ -487,6 +487,10 @@ class flexible_table {
                 }
                 break;
 
+                case 'userpic':
+                    // do nothing, do not display sortable links      
+                break;
+
                 default:
                 if($this->is_sortable) {
                     if($primary_sort_column == $column) {
index d4373545bcdb983de3b70cfe525e8a2700756b87..27d695dc513f2856ddeef64cccf9180efe6122fc 100644 (file)
 
     /// Define a table showing a list of users in the current role selection
 
-    $tablecolumns = array('picture', 'fullname');
-    $tableheaders = array('', get_string('fullname'));
+    $tablecolumns = array('userpic', 'fullname');
+    $tableheaders = array(get_string('userpic'), get_string('fullname'));
     if (!isset($hiddenfields['city'])) {
         $tablecolumns[] = 'city';
         $tableheaders[] = get_string('city');
     $table->define_columns($tablecolumns);
     $table->define_headers($tableheaders);
     $table->define_baseurl($baseurl);
-
+    
     $table->sortable(true, 'lastaccess', SORT_DESC);
 
     $table->set_attribute('cellspacing', '0');