fix stupid mistake
This commit is contained in:
parent
56cb9dbbd5
commit
089b61d097
|
@ -24,7 +24,7 @@ class SetLocale
|
||||||
if (Session::has('locale')) {
|
if (Session::has('locale')) {
|
||||||
$locale = Session::get('locale', Settings::getValueByKey("SETTINGS::LOCALE:DEFAULT"));
|
$locale = Session::get('locale', Settings::getValueByKey("SETTINGS::LOCALE:DEFAULT"));
|
||||||
} else {
|
} else {
|
||||||
if (!Settings::getValueByKey("SETTINGS::LOCALE:DYNAMIC")=="true") {
|
if (Settings::getValueByKey("SETTINGS::LOCALE:DYNAMIC")!=="true") {
|
||||||
$locale = Settings::getValueByKey("SETTINGS::LOCALE:DEFAULT");
|
$locale = Settings::getValueByKey("SETTINGS::LOCALE:DEFAULT");
|
||||||
} else {
|
} else {
|
||||||
$locale = substr($request->server('HTTP_ACCEPT_LANGUAGE'), 0, 2);
|
$locale = substr($request->server('HTTP_ACCEPT_LANGUAGE'), 0, 2);
|
||||||
|
|
|
@ -234,7 +234,7 @@ class SettingsSeeder extends Seeder
|
||||||
Settings::firstOrCreate([
|
Settings::firstOrCreate([
|
||||||
'key' => 'SETTINGS::LOCALE:AVAILABLE',
|
'key' => 'SETTINGS::LOCALE:AVAILABLE',
|
||||||
], [
|
], [
|
||||||
'value' => 'en,de,fr,es',
|
'value' => '',
|
||||||
'type' => 'string',
|
'type' => 'string',
|
||||||
'description' => 'The available languages'
|
'description' => 'The available languages'
|
||||||
]);
|
]);
|
||||||
|
|
Loading…
Reference in a new issue