fix: User language setting

This commit is contained in:
Attila Kerekes 2022-11-17 17:12:24 +01:00 committed by Attila Jozsef Kerekes
parent aba1f37b1c
commit ec27889086
No known key found for this signature in database
GPG key ID: E1121565A016ADFD

View file

@ -28,9 +28,6 @@ class AppServiceProvider extends ServiceProvider
\Session::put('current_user', null);
}
$lang = Setting::fetch('language');
\App::setLocale($lang);
$applications = Application::all();
if ($applications->count() <= 0) {
if (class_exists('ZipArchive')) {
@ -74,6 +71,9 @@ class AppServiceProvider extends ServiceProvider
$allusers = User::all();
$current_user = User::currentUser();
$lang = Setting::fetch('language');
\App::setLocale($lang);
$view->with('alt_bg', $alt_bg);
$view->with('allusers', $allusers);
$view->with('current_user', $current_user);