Added option to cache langlist in dataroot/cache/languages. Small logic fix.

This commit is contained in:
martinlanghoff
2005-04-11 06:04:35 +00:00
parent d162ab2307
commit 78ac8df2d0
+1 -1
View File
@@ -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");