From 8ac3b8e8d02595d0b078026761baa9eac2ed9328 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Tue, 26 Aug 2025 08:17:41 -0600 Subject: [PATCH] Use the settings class --- logout.php | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/logout.php b/logout.php index f61b0ba413..213505653d 100644 --- a/logout.php +++ b/logout.php @@ -26,14 +26,9 @@ //includes files require_once __DIR__ . "/resources/require.php"; - + //use custom logout destination if set otherwise redirect to the index page - if (isset($_SESSION["login"]["logout_destination"]["text"])){ - $logout_destination = $_SESSION["login"]["logout_destination"]["text"]; - } - else { - $logout_destination = PROJECT_PATH."/"; - } + $logout_destination = $settings->get('login', 'logout_destination', PROJECT_PATH.'/'); //destroy session session_unset();