Skip to content

Commit

Permalink
MDL-10586: Fix header to show the right display order. (Initial patch…
Browse files Browse the repository at this point in the history
… by Mitsuhiro Yoshida) (merge from 1.8/1.9)
  • Loading branch information
scyrma committed Jul 10, 2008
1 parent a158cf7 commit e3b9ae8
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion admin/user.php
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,17 @@

$mainadmin = get_admin();

$table->head = array ("$firstname / $lastname", $email, $city, $country, $lastaccess, "", "", "");
$override->firstname = 'firstname';
$override->lastname = 'lastname';
$fullnamelanguage = get_string('fullnamedisplay', '', $override);
if (($CFG->fullnamedisplay == 'firstname lastname') or
($CFG->fullnamedisplay == 'firstname') or
($CFG->fullnamedisplay == 'language' and $fullnamelanguage == 'firstname lastname' )) {
$fullnamedisplay = "$firstname / $lastname";
} else { // ($CFG->fullnamedisplay == 'language' and $fullnamelanguage == 'lastname firstname')
$fullnamedisplay = "$lastname / $firstname";
}
$table->head = array ($fullnamedisplay, $email, $city, $country, $lastaccess, "", "", "");
$table->align = array ("left", "left", "left", "left", "left", "center", "center", "center");
$table->width = "95%";
foreach ($users as $user) {
Expand Down

0 comments on commit e3b9ae8

Please sign in to comment.