Optimize L10n usage for Session (reduce "App" complexity even more)
This commit is contained in:
+1
-5
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user