mirror of
https://github.com/moodle/moodle.git
synced 2025-02-13 12:34:28 +01:00
Merge branch 'w06_MDL-26256_20_collator' of git://github.com/skodak/moodle
This commit is contained in:
commit
e32d5f9b88
@ -474,10 +474,11 @@ class textlib {
|
||||
*/
|
||||
function asort(array &$arr) {
|
||||
if (function_exists('collator_asort')) {
|
||||
$coll = collator_create(get_string('locale', 'langconfig'));
|
||||
collator_asort($coll, $arr);
|
||||
} else {
|
||||
asort($arr, SORT_LOCALE_STRING);
|
||||
if ($coll = collator_create(get_string('locale', 'langconfig'))) {
|
||||
collator_asort($coll, $arr);
|
||||
return;
|
||||
}
|
||||
}
|
||||
asort($arr, SORT_LOCALE_STRING);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user