@@ 41-47 (lines=7) @@ | ||
38 | // Set user locale |
|
39 | if ($user->locale) { |
|
40 | $this->setIfAllowed($user->locale); |
|
41 | } else { |
|
42 | if (config('localizer.set_auto_lang')) { |
|
43 | $this->setIfAllowed(Identify::lang()->getLanguage()); |
|
44 | } else { |
|
45 | $this->setIfAllowed(config('localizer.default_lang')); |
|
46 | } |
|
47 | } |
|
48 | } else { |
|
49 | if ($request->session()->has('locale')) { |
|
50 | $this->setIfAllowed(session('locale')); |
|
@@ 51-57 (lines=7) @@ | ||
48 | } else { |
|
49 | if ($request->session()->has('locale')) { |
|
50 | $this->setIfAllowed(session('locale')); |
|
51 | } else { |
|
52 | if (config('localizer.set_auto_lang')) { |
|
53 | $this->setIfAllowed(Identify::lang()->getLanguage()); |
|
54 | } else { |
|
55 | $this->setIfAllowed(config('localizer.default_lang')); |
|
56 | } |
|
57 | } |
|
58 | } |
|
59 | } |
|
60 |