Use the locale to sort the list of activites everywhere. This matches a change a made in one place before christmas. If you don't do this, the PHP sorts by ASCII order, so mixed case names, or special characters, get sorted wrongly. Merged from MOODLE_19_STABLE.

This commit is contained in:
tjhunt
2008-01-07 16:46:35 +00:00
parent 1c8ec30d95
commit dba21d4a19
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -182,7 +182,7 @@
}
$modulebyname[$strmodulename] = $module;
}
ksort($modulebyname);
ksort($modulebyname, SORT_LOCALE_STRING);
/// Print the table of all modules
// construct the flexible table ready to display
+1 -1
View File
@@ -1259,7 +1259,7 @@ function get_all_mods($courseid, &$mods, &$modnames, &$modnamesplural, &$modname
}
}
if ($modnamesused) {
asort($modnamesused);
asort($modnamesused, SORT_LOCALE_STRING);
}
}
}
+1 -1
View File
@@ -149,7 +149,7 @@ function include_help_for_each_module($file, $langs, $helpdir) {
$strmodulename = get_string('modulename', $mod->name);
$modulebyname[$strmodulename] = $mod;
}
ksort($modulebyname);
ksort($modulebyname, SORT_LOCALE_STRING);
foreach ($modulebyname as $mod) {
foreach ($langs as $lang) {