From: gustav_delius Date: Sun, 23 Apr 2006 15:20:26 +0000 (+0000) Subject: Deal with modules that are missing their language strings X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=1e7b7003f23d3bef70bd275f31e0c60ea2dcc297;p=moodle.git Deal with modules that are missing their language strings --- diff --git a/admin/modules.php b/admin/modules.php index 2783f80922..121558222f 100644 --- a/admin/modules.php +++ b/admin/modules.php @@ -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);