Skip to content

Commit

Permalink
Merge branch 'MDL-60776-33' of git://github.com/sarjona/moodle into M…
Browse files Browse the repository at this point in the history
…OODLE_33_STABLE
  • Loading branch information
David Monllao committed Jan 15, 2018
2 parents d251a46 + 879c847 commit 0c49613
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions enrol/users.php
Expand Up @@ -194,11 +194,10 @@
$a->firstname = 'firstname';
$a->lastname = 'lastname';
// Getting the fullname display will ensure that the order in the language file is maintained.
$usernameheader = explode(' ', get_string('fullnamedisplay', null, $a));
} else {
// If everything is as expected then put them in the order specified by the alternative full name format setting.
$usernameheader = order_in_string($allusernames, $fullusernames);
$fullusernames = get_string('fullnamedisplay', null, $a);
}
// If everything is as expected then put them in the order specified by the alternative full name format setting.
$usernameheader = order_in_string($allusernames, $fullusernames);

// Loop through each name and return the language string.
foreach ($usernameheader as $key => $username) {
Expand Down

0 comments on commit 0c49613

Please sign in to comment.