From 8ddea2427267ddb353eaf95c15b84f37f384f462 Mon Sep 17 00:00:00 2001 From: Paul Spenke Date: Sat, 21 Nov 2026 17:33:39 +0100 Subject: [PATCH] fix initializing --- plugi-core/src/Core/helpers.php | 4 ++++ plugi-core/src/Modules/Auth/resources/views/layout.php | 8 +++----- plugi-core/src/Plugi.php | 6 +++++- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/plugi-core/src/Core/helpers.php b/plugi-core/src/Core/helpers.php index 0ce10bf..8b2ff94 100644 --- a/plugi-core/src/Core/helpers.php +++ b/plugi-core/src/Core/helpers.php @@ -387,6 +387,10 @@ if (! function_exists('phpb_redirect')) { $_SESSION["phpb_flash"] = $flashData; } + if (session_status() === PHP_SESSION_ACTIVE) { + session_write_close(); + } + header('Location: ' . $url, true, $statusCode); exit(); } diff --git a/plugi-core/src/Modules/Auth/resources/views/layout.php b/plugi-core/src/Modules/Auth/resources/views/layout.php index 78b1a3a..1197fb5 100644 --- a/plugi-core/src/Modules/Auth/resources/views/layout.php +++ b/plugi-core/src/Modules/Auth/resources/views/layout.php @@ -3,17 +3,15 @@ - <?= phpb_trans('auth.title') ?> + <?= phpb_trans("auth.title") ?> - + " rel="stylesheet">
- +