Optimize L10n usage for Session (reduce "App" complexity even more)

This commit is contained in:
nupplaPhil
2019-12-10 00:56:49 +01:00
parent cad7e534a4
commit 26bd956912
2 changed files with 14 additions and 16 deletions
+1 -5
View File
@@ -674,11 +674,7 @@ class App
}
// Exclude the backend processes from the session management
if (!$this->mode->isBackend()) {
$this->l10n->setSessionVariable();
$this->l10n->setLangFromSession();
} else {
$_SESSION = [];
if ($this->mode->isBackend()) {
Core\Worker::executeIfIdle();
}