Ensure the 'transcribe_' is prepended to the class name (#7048)

Class name requires the transcribe_ prepended before PHP checks to see
if the class actually exists as the engine must have 'transcribe_' in
front of the classes.

Co-authored-by: Tim Fry <tim@fusionpbx.com>
This commit is contained in:
frytimo
2024-07-10 17:02:23 -03:00
committed by GitHub
parent 8cfdb40acc
commit 5af4610a9c

View File

@@ -230,7 +230,7 @@
$transcribe_engine = $settings->get('transcribe', 'engine', '');
//add the transcribe object and get the languages arrays
if (!empty($transcribe_engine) && class_exists($transcribe_engine)) {
if (!empty($transcribe_engine) && class_exists('transcribe_' . $transcribe_engine)) {
$transcribe = new transcribe($settings);
//transcribe the voicemail recording