1
0
mirror of https://github.com/moodle/moodle.git synced 2025-04-24 18:04:43 +02:00

Deal with modules that are missing their language strings

This commit is contained in:
gustav_delius 2006-04-23 15:20:26 +00:00
parent 3da3e957f9
commit 1e7b7003f2

@ -140,6 +140,10 @@
foreach ($modules as $module) {
$strmodulename = get_string("modulename", "$module->name");
// Deal with modules which are lacking the language string
if ($strmodulename == '[[modulename]]') {
$strmodulename = $module->name;
}
$modulebyname[$strmodulename] = $module;
}
ksort($modulebyname);