mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Fix language selector (#15003)
This commit is contained in:
@@ -125,7 +125,7 @@ class UserPreferencesController extends Controller
|
||||
|
||||
private function getValidLocales()
|
||||
{
|
||||
return array_reduce(glob(resource_path('lang') . '/*', GLOB_ONLYDIR), function ($locales, $locale) {
|
||||
return array_reduce(glob(base_path('lang') . '/*', GLOB_ONLYDIR), function ($locales, $locale) {
|
||||
$locale = basename($locale);
|
||||
$lang = __('preferences.lang', [], $locale);
|
||||
$locales[$locale] = ($lang == 'preferences.lang' ? $locale : $lang);
|
||||
|
Reference in New Issue
Block a user