BugFix-remove-legacy-warning (#1638)

changed switch_music_on_hold->select to be more inline of usage
changed extension_edit to use new format
changed call_center_queue_edit to use new format while
https://github.com/fusionpbx/fusionpbx/pull/1637 is in testing
This commit is contained in:
Mafoo
2016-06-08 22:15:36 +01:00
committed by FusionPBX
parent 7e024a5521
commit 27dc84b3b8
3 changed files with 17 additions and 32 deletions

View File

@@ -724,10 +724,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
}
require_once "app/music_on_hold/resources/classes/switch_music_on_hold.php";
$moh= new switch_music_on_hold;
$moh->select_name = "queue_moh_sound";
$moh->select_value = $queue_moh_sound;
$moh->select_options = $select_options;
echo $moh->select();
echo $moh->select("queue_moh_sound", $queue_moh_sound, $select_options);
echo "<br />\n";
echo $text['description-music_on_hold']."\n";