1
0
Fork 0
forked from mirror/pixelfed

set session locale fallback using global config

This commit is contained in:
dx7 2020-07-09 21:01:42 -03:00
parent 4762efe8ee
commit f81c642087
No known key found for this signature in database
GPG key ID: 3E85E7873311DF48

View file

@ -136,6 +136,6 @@ class AuthLogin
protected function userLanguage($user)
{
session()->put('locale', $user->language ?? 'en');
session()->put('locale', $user->language ?? config('app.locale'));
}
}