]> git.mjollnir.org Git - moodle.git/commitdiff
Deal with modules that are missing their language strings
authorgustav_delius <gustav_delius>
Sun, 23 Apr 2006 15:20:26 +0000 (15:20 +0000)
committergustav_delius <gustav_delius>
Sun, 23 Apr 2006 15:20:26 +0000 (15:20 +0000)
admin/modules.php

index 2783f809226afd82f9b435e1300d2e21c76bfd0e..121558222f215037abe0762b90fa5f9753e2fd87 100644 (file)
 
     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);