AI bug fixes and update interfaces (#6925)
* allow settings to load domain and user settings * ensure engine is also enabled before attempting to create a new object * add default values to stop undefined variable warnings * enforce all models to set and return voices and languages * enforce all models to set and return languages * ensure speech_enabled is set by the current session
This commit is contained in:
@@ -380,6 +380,9 @@
|
||||
}
|
||||
}
|
||||
|
||||
//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']);
|
||||
|
||||
Reference in New Issue
Block a user