Optimize L10n usage for Session (reduce "App" complexity even more)
This commit is contained in:
parent
cad7e534a4
commit
26bd956912
2 changed files with 14 additions and 16 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue