mirror of
https://github.com/danielbrendel/hortusfox-web.git
synced 2026-01-07 21:30:18 -06:00
#255 Use locale_get_display_language function
This commit is contained in:
@@ -246,11 +246,7 @@ class UtilsModule {
|
||||
if (substr($file, 0, 1) !== '.') {
|
||||
|
||||
|
||||
$result[] = ['ident' => $file, 'name' => CacheModel::remember('_language_ident_' . $file, 3600 * 24, function() use ($file) {
|
||||
$olng = new Asatru\Lang\Language($file);
|
||||
return $olng->query('app._language_ident', $file);
|
||||
}
|
||||
)];
|
||||
$result[] = ['ident' => $file, 'name' => locale_get_display_language($file, static::getLanguage())];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user