mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
Use the settings object
This commit is contained in:
@@ -37,6 +37,10 @@
|
|||||||
$language = new text;
|
$language = new text;
|
||||||
$text = $language->get();
|
$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
|
//set additional variables
|
||||||
$action = $_REQUEST["action"] ?? '';
|
$action = $_REQUEST["action"] ?? '';
|
||||||
$search = $_REQUEST["search"] ?? '';
|
$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
|
//create token
|
||||||
$object = new token;
|
$object = new token;
|
||||||
$token = $object->create($_SERVER['PHP_SELF']);
|
$token = $object->create($_SERVER['PHP_SELF']);
|
||||||
@@ -684,4 +685,4 @@
|
|||||||
fclose($fp);
|
fclose($fp);
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|||||||
Reference in New Issue
Block a user