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.
This commit is contained in:
+1
-1
@@ -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
@@ -1259,7 +1259,7 @@ function get_all_mods($courseid, &$mods, &$modnames, &$modnamesplural, &$modname
|
||||
}
|
||||
}
|
||||
if ($modnamesused) {
|
||||
asort($modnamesused);
|
||||
asort($modnamesused, SORT_LOCALE_STRING);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user