mirror of
https://github.com/CachetHQ/Cachet.git
synced 2025-01-17 13:38:20 +01:00
Handle locales that we haven't accounted for
This commit is contained in:
parent
c7627d8337
commit
287e9b5c6c
@ -58,7 +58,10 @@ class TimezoneLocaleComposer
|
||||
$langs = array_map(function ($lang) use ($enabledLangs) {
|
||||
$locale = basename($lang);
|
||||
|
||||
return [$locale => $enabledLangs[$locale]];
|
||||
return [$locale => array_get($enabledLangs, $locale, [
|
||||
'name' => $locale,
|
||||
'subset' => null,
|
||||
])];
|
||||
}, glob(base_path('resources/lang').'/*'));
|
||||
|
||||
$langs = call_user_func_array('array_merge', $langs);
|
||||
|
Loading…
x
Reference in New Issue
Block a user