\n";
diff --git a/app/music_on_hold/resources/classes/switch_music_on_hold.php b/app/music_on_hold/resources/classes/switch_music_on_hold.php
index 30381ffef2..4895bea87d 100644
--- a/app/music_on_hold/resources/classes/switch_music_on_hold.php
+++ b/app/music_on_hold/resources/classes/switch_music_on_hold.php
@@ -31,9 +31,6 @@ include "root.php";
class switch_music_on_hold {
public $domain_uuid;
- public $select_name;
- public $select_value;
- public $select_options;
private $xml;
private $db;
@@ -53,31 +50,24 @@ include "root.php";
}
}
- //it is NOT recommended to use this function anymore you should be using the ringback class
+ //it is NOT recommended to use this function if you want to include ringback you should be using the ringback class
//see app/ring_groups/ring_group_edit.php for example
- public function select() {
- $trace = debug_backtrace();
- $caller = $trace[1];
- $what = $caller['function'];
- if (isset($caller['class'])) {
- $what .= " in {$caller['class']}";
- }
- trigger_error("Legacy call to select in switch_music_on_hold class by $what", E_USER_WARNING);
+ public function select($name, $selected, $options) {
//add multi-lingual support
$language = new text;
$text = $language->get();
//start the select
- $select = " \n";
return $select;
}