1
0
Fork 0

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

This commit is contained in:
Philipp Holzer 2019-12-10 00:56:49 +01:00
commit 26bd956912
No known key found for this signature in database
GPG key ID: D8365C3D36B77D90
2 changed files with 14 additions and 16 deletions

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();
}