Merge branch 'w06_MDL-26256_20_collator' of git://github.com/skodak/moodle
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user