]> git.mjollnir.org Git - moodle.git/commitdiff
Sort the add activites dropdown using the locale.
authortjhunt <tjhunt>
Fri, 21 Dec 2007 15:37:47 +0000 (15:37 +0000)
committertjhunt <tjhunt>
Fri, 21 Dec 2007 15:37:47 +0000 (15:37 +0000)
course/lib.php

index 9c0af6626dfad5c674a7885eb52eda3089bc64c1..cadd68e961d67f16d541d1bd9038940adc169043 100644 (file)
@@ -1234,7 +1234,7 @@ function get_all_mods($courseid, &$mods, &$modnames, &$modnamesplural, &$modname
                 $modnamesplural[$mod->name] = get_string("modulenameplural", "$mod->name");
             }
         }
-        asort($modnames);
+        asort($modnames, SORT_LOCALE_STRING);
     } else {
         error("No modules are installed!");
     }