From 1e7b7003f23d3bef70bd275f31e0c60ea2dcc297 Mon Sep 17 00:00:00 2001 From: gustav_delius Date: Sun, 23 Apr 2006 15:20:26 +0000 Subject: [PATCH] Deal with modules that are missing their language strings --- admin/modules.php | 4 ++++ 1 file changed, 4 insertions(+) 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); -- 2.39.5