From 89ffda1abb627e21f79f8679b981c83a80df54f9 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Tue, 13 Jun 2023 18:55:52 +0000 Subject: [PATCH] Quick backup before crash --- Admin/Install/Application/Shop/Application.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Admin/Install/Application/Shop/Application.php b/Admin/Install/Application/Shop/Application.php index 5d096d2..1621687 100755 --- a/Admin/Install/Application/Shop/Application.php +++ b/Admin/Install/Application/Shop/Application.php @@ -127,7 +127,7 @@ final class Application /* CSRF token OK? */ if ($request->hasData('CSRF') - && !\hash_equals($this->app->sessionManager->get('CSRF'), $request->getDataString('CSRF')) + && !\hash_equals($this->app->sessionManager->data['CSRF'] ?? '', $request->getDataString('CSRF')) ) { $response->header->status = RequestStatusCode::R_403; @@ -153,20 +153,20 @@ final class Application if ($account->id > 0) { $response->header->l11n = $account->l11n; - } elseif ($this->app->sessionManager->get('language') !== null - && $response->header->l11n->language !== $this->app->sessionManager->get('language') + } elseif (isset($this->app->sessionManager->data['language']) + && $response->header->l11n->language !== $this->app->sessionManager->data['language'] ) { $response->header->l11n ->loadFromLanguage( - $this->app->sessionManager->get('language'), - $this->app->sessionManager->get('country') ?? '*' + $this->app->sessionManager->data['language'], + $this->app->sessionManager->data['country'] ?? '*' ); } else { $this->app->setResponseLanguage($request, $response, $this->config); } if (!\in_array($response->header->l11n->language, $this->config['language'])) { - $response->header->l11n->setLanguage($this->app->l11nServer->language); + $response->header->l11n->language = $this->app->l11nServer->language; } $pageView = new ShopView($this->app->l11nManager, $request, $response);