Commit 2d8956d6 authored by Henning Leutz's avatar Henning Leutz 🥋

fix: refactor: check if locale has an empty language, so use the default language from the system

parent d14dec09
......@@ -855,6 +855,14 @@ class QUI
}
}
if (self::$Locale->getCurrent() === '') {
$language = self::conf('globals', 'standardLanguage');
if (!empty($language)) {
self::$Locale->setCurrent($language);
}
}
return self::$Locale;
}
......
......@@ -829,7 +829,7 @@ class Rewrite
$Project = false;
}
if ($Project && is_object($Project)) {
if ($Project && \is_object($Project)) {
$this->project = $Project;
return $this->project;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment