fix stupid mistake
This commit is contained in:
parent
56cb9dbbd5
commit
089b61d097
2 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
|
@ -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'
|
||||
]);
|
||||
|
|
Loading…
Add table
Reference in a new issue