Index: branches/5.0.x/core/kernel/application.php =================================================================== diff -u -r12970 -r13020 --- branches/5.0.x/core/kernel/application.php (.../application.php) (revision 12970) +++ branches/5.0.x/core/kernel/application.php (.../application.php) (revision 13020) @@ -1,6 +1,6 @@ Debugger->appendTimestamp('Loaded cache and phrases'); } + $this->ValidateLogin(); + $this->UnitConfigReader->AfterConfigRead(); if (defined('DEBUG_MODE') && $this->isDebugMode()) { @@ -418,8 +420,6 @@ mb_internal_encoding('UTF-8'); } - $this->ValidateLogin(); - if (defined('DEBUG_MODE') && $this->isDebugMode()) { $this->Debugger->profileFinish('kernel4_startup'); } @@ -2018,9 +2018,8 @@ if (!$user_id && $user_id != -1) { $user_id = -2; + } - } - $this->SetVar('u.current_id', $user_id); if (!$this->isAdmin) {