mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Use the settings object
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user