1
0
Fork 1
mirror of https://github.com/pixelfed/pixelfed.git synced 2024-12-27 02:06:52 +00:00

Merge pull request #2315 from dx7/use-global-locale-for-session

Set session locale fallback using global locale config
This commit is contained in:
daniel 2020-07-21 19:22:28 -06:00 committed by GitHub
commit 58be61099e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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'));
}
}