From fb4ccbc6c773c3e052983ffd4ad3e642256c1704 Mon Sep 17 00:00:00 2001 From: Mafoo Date: Wed, 8 Jun 2016 22:40:24 +0100 Subject: [PATCH] BugFix Convert call_center to ringback class (#1637) --- app/call_centers/call_center_queue_edit.php | 43 +-------------------- 1 file changed, 2 insertions(+), 41 deletions(-) diff --git a/app/call_centers/call_center_queue_edit.php b/app/call_centers/call_center_queue_edit.php index 0522598dd8..c007db50f3 100644 --- a/app/call_centers/call_center_queue_edit.php +++ b/app/call_centers/call_center_queue_edit.php @@ -684,47 +684,8 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { echo "\n"; echo "\n"; - $select_options = ""; - if ($queue_moh_sound == "tone_stream://\$\${us-ring};loops=-1" || $queue_moh_sound == "us-ring") { - $select_options .= " \n"; - } - else { - $select_options .= " \n"; - } - if ($queue_moh_sound == "tone_stream://\$\${pt-ring};loops=-1" || $queue_moh_sound == "pt-ring") { - $select_options .= " \n"; - } - else { - $select_options .= " \n"; - } - if ($queue_moh_sound == "tone_stream://\$\${fr-ring};loops=-1" || $queue_moh_sound == "fr-ring") { - $select_options .= " \n"; - } - else { - $select_options .= " \n"; - } - if ($queue_moh_sound == "tone_stream://\$\${uk-ring};loops=-1" || $queue_moh_sound == "uk-ring") { - $select_options .= " \n"; - } - else { - $select_options .= " \n"; - } - if ($queue_moh_sound == "tone_stream://\$\${rs-ring};loops=-1" || $queue_moh_sound == "rs-ring") { - $select_options .= " \n"; - } - else { - $select_options .= " \n"; - } - - if ($queue_moh_sound == "tone_stream://\$\${it-ring};loops=-1" || $queue_moh_sound == "it-ring") { - $select_options .= " \n"; - } - else { - $select_options .= " \n"; - } - require_once "app/music_on_hold/resources/classes/switch_music_on_hold.php"; - $moh= new switch_music_on_hold; - echo $moh->select("queue_moh_sound", $queue_moh_sound, $select_options); + $ringbacks = new ringbacks; + echo $ringbacks->select('queue_moh_sound', $queue_moh_sound); echo "
\n"; echo $text['description-music_on_hold']."\n";