Some more Language fix
This commit is contained in:
parent
40d21cb0ae
commit
e081d2a463
@ -139,7 +139,10 @@ class Context {
|
|||||||
} else if ($this->user) {
|
} else if ($this->user) {
|
||||||
$this->setLanguage($this->user->language);
|
$this->setLanguage($this->user->language);
|
||||||
} else {
|
} else {
|
||||||
$this->setLanguage(Language::fromHeader());
|
$language = Language::fromHeader();
|
||||||
|
if ($language !== null) {
|
||||||
|
$this->setLanguage($language);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user