Some more Language fix

This commit is contained in:
Roman 2024-05-07 21:57:49 +02:00
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);
}
} }
} }