fix stupid mistake

This commit is contained in:
1day2die 2022-01-10 20:46:36 +01:00
parent 56cb9dbbd5
commit 089b61d097
2 changed files with 2 additions and 2 deletions

View file

@ -24,7 +24,7 @@ class SetLocale
if (Session::has('locale')) {
$locale = Session::get('locale', Settings::getValueByKey("SETTINGS::LOCALE:DEFAULT"));
} else {
if (!Settings::getValueByKey("SETTINGS::LOCALE:DYNAMIC")=="true") {
if (Settings::getValueByKey("SETTINGS::LOCALE:DYNAMIC")!=="true") {
$locale = Settings::getValueByKey("SETTINGS::LOCALE:DEFAULT");
} else {
$locale = substr($request->server('HTTP_ACCEPT_LANGUAGE'), 0, 2);

View file

@ -234,7 +234,7 @@ class SettingsSeeder extends Seeder
Settings::firstOrCreate([
'key' => 'SETTINGS::LOCALE:AVAILABLE',
], [
'value' => 'en,de,fr,es',
'value' => '',
'type' => 'string',
'description' => 'The available languages'
]);