Permalink
Browse files

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

  • Loading branch information...
1 parent 774c4d2 commit 40869b2ead5e08307eb89bc35b0d4e305562a391 paca70 committed Oct 22, 2004
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/moodlelib.php
View
@@ -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);
}

0 comments on commit 40869b2

Please sign in to comment.