Merging from STABLE:

Forgot to prepend country codes to the teacher list as well when sorting.
This commit is contained in:
defacer
2005-06-03 23:41:06 +00:00
parent 097c223156
commit bf845f2b30
+14 -1
View File
@@ -194,6 +194,7 @@
print_user($teacher, $course);
}
} else {
$countrysort = (strpos($sortclause, 'country') !== false);
foreach ($teachers as $teacher) {
if ($teacher->lastaccess) {
@@ -201,13 +202,25 @@
} else {
$lastaccess = $strnever;
}
if (empty($teacher->country)) {
$country = '';
}
else {
if($countrysort) {
$country = '('.$teacher->country.') '.$countries[$teacher->country];
}
else {
$country = $countries[$teacher->country];
}
}
$table->add_data(array (
//'<input type="checkbox" name="userid[]" value="'.$teacher->id.'" />',
print_user_picture($teacher->id, $course->id, $teacher->picture, false, true),
'<strong><a href="'.$CFG->wwwroot.'/user/view.php?id='.$teacher->id.'&amp;course='.$course->id.'">'.fullname($teacher, $isteacher).'</a></strong>',
$teacher->city,
$teacher->country ? $countries[$teacher->country] : '',
$country,
$lastaccess));
}