Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added option to cache langlist in dataroot/cache/languages. Small log…

…ic fix.
  • Loading branch information...
commit 78ac8df2d08795a3f5019d08ba4bc290830fee12 1 parent d162ab2
martinlanghoff authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/moodlelib.php
View
2  lib/moodlelib.php
@@ -2446,7 +2446,7 @@ function get_list_of_languages() {
unset($string);
}
}
- if ( defined('FULLME') && FULLME !== 'cron' && !empty($CFG->langcache)) {
+ if ( defined('FULLME') && FULLME === 'cron' && !empty($CFG->langcache)) {
if ($file = fopen($CFG->dataroot .'/cache/languages', 'w')) {
foreach ($languages as $key => $value) {
fwrite($file, "$key $value\n");
Please sign in to comment.
Something went wrong with that request. Please try again.