From b96a0f6d481fee630c8738a64ddd4fc8a689f832 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Sun, 24 Mar 2024 08:47:14 -0600 Subject: [PATCH] Use the settings object --- app/recordings/recordings.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/app/recordings/recordings.php b/app/recordings/recordings.php index daf22c6c2a..38df040ffa 100644 --- a/app/recordings/recordings.php +++ b/app/recordings/recordings.php @@ -37,6 +37,10 @@ $language = new text; $text = $language->get(); +//add the settings object + $settings = new settings(["domain_uuid" => $SESSION['domain_uuid']]); + $speech_enabled = $settings->get('ai', 'speech_enabled'); + //set additional variables $action = $_REQUEST["action"] ?? ''; $search = $_REQUEST["search"] ?? ''; @@ -380,9 +384,6 @@ } } -//set the default value for speech - $speech_enabled = !empty($_SESSION['ai']['speech_enabled']['boolean']) && !empty($_SESSION['ai']['speech_engine']['text']); - //create token $object = new token; $token = $object->create($_SERVER['PHP_SELF']); @@ -684,4 +685,4 @@ fclose($fp); } -?> \ No newline at end of file +?>