mirror of
https://github.com/YunoHost-Apps/pixelfed_ynh.git
synced 2024-09-03 20:06:04 +02:00
set session locale fallback using global config
This commit is contained in:
parent
4762efe8ee
commit
f81c642087
1 changed files with 1 additions and 1 deletions
|
@ -136,6 +136,6 @@ class AuthLogin
|
||||||
|
|
||||||
protected function userLanguage($user)
|
protected function userLanguage($user)
|
||||||
{
|
{
|
||||||
session()->put('locale', $user->language ?? 'en');
|
session()->put('locale', $user->language ?? config('app.locale'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue