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:
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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user