Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix for bug 3736

  • Loading branch information...
commit 0ef14876875e8b1a2ebaf4bce55001ebf56722bb 1 parent e1ace7d
moodler authored
Showing with 5 additions and 3 deletions.
  1. +5 −3 lib/moodlelib.php
View
8 lib/moodlelib.php
@@ -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)) {
Please sign in to comment.
Something went wrong with that request. Please try again.