mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-29 16:54:04 +02:00
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();
|
parent::setupInternationalization();
|
||||||
if ($this->user !== null && $this->user->getPreferences() !== null
|
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 {
|
try {
|
||||||
Translator::setupLocale($locale);
|
Translator::setupLocale($locale);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user