Fix for bug 3736

This commit is contained in:
moodler
2005-07-12 11:36:50 +00:00
parent e1ace7dd20
commit 0ef1487687
+5 -3
View File
@@ -4496,9 +4496,11 @@ function get_list_of_languages() {
return false;
}
foreach ($langdirs as $lang) {
@include($CFG->dirroot .'/lang/'. $lang .'/moodle.php');
$languages[$lang] = $string['thislanguage'] .' ('. $lang .')';
unset($string);
if (file_exists($CFG->dirroot .'/lang/'. $lang .'/moodle.php')) {
include($CFG->dirroot .'/lang/'. $lang .'/moodle.php');
$languages[$lang] = $string['thislanguage'] .' ('. $lang .')';
unset($string);
}
}
}
if ( defined('FULLME') && FULLME === 'cron' && !empty($CFG->langcache)) {