Prevent errors if lang/$lang/moodle.lib does not exists

This commit is contained in:
paca70
2004-10-22 11:14:42 +00:00
parent 774c4d2bc3
commit 40869b2ead
+1 -1
View File
@@ -3119,7 +3119,7 @@ function get_list_of_languages() {
return false;
}
foreach ($langdirs as $lang) {
include($CFG->dirroot .'/lang/'. $lang .'/moodle.php');
@include($CFG->dirroot .'/lang/'. $lang .'/moodle.php');
$languages[$lang] = $string['thislanguage'] .' ('. $lang .')';
unset($string);
}