MDL-22054 skip loading of missing modules

This commit is contained in:
Petr Skoda 2010-04-11 08:59:27 +00:00
parent 8c25522551
commit fc61cecd6a
2 changed files with 7 additions and 0 deletions

View file

@ -11,6 +11,9 @@ if ($hassiteconfig) {
$modulebyname = array();
foreach ($modules as $module) {
if (!file_exists("$CFG->dirroot/mod/$module->name/lib.php")) {
continue;
}
$strmodulename = get_string('modulename', $module->name);
// Deal with modules which are lacking the language string
if ($strmodulename == '[[modulename]]') {