Prevent errors if lang/$lang/moodle.lib does not exists
This commit is contained in:
+1
-1
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user