Fix wrong variable assignment causing preferred languages not being set
This commit is contained in:
parent
f1d7cd8b50
commit
eb977b7a55
|
@ -322,7 +322,7 @@ class Web extends ApplicationBootstrap
|
|||
{
|
||||
parent::setupInternationalization();
|
||||
if ($this->user !== null && $this->user->getPreferences() !== null
|
||||
&& ($locale = $this->user->getPreferences()->get('app.language') !== null)
|
||||
&& (($locale = $this->user->getPreferences()->get('app.language')) !== null)
|
||||
) {
|
||||
try {
|
||||
Translator::setupLocale($locale);
|
||||
|
|
Loading…
Reference in New Issue