From bfa76cebcdcf9d4615539bbcf1480e4cbd5599cb Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Thu, 30 Jun 2016 19:10:07 -0600 Subject: [PATCH] Update ringbacks.php Update the music on hold list for the ringbacks class. --- resources/classes/ringbacks.php | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/resources/classes/ringbacks.php b/resources/classes/ringbacks.php index 9c5fab2292..f660e7cc67 100644 --- a/resources/classes/ringbacks.php +++ b/resources/classes/ringbacks.php @@ -31,7 +31,7 @@ if (!class_exists('ringbacks')) { //define variables public $db; private $ringbacks; - private $moh_list; + private $music_list; private $recordings_list; private $default_ringback_label; @@ -90,8 +90,8 @@ if (!class_exists('ringbacks')) { //get music on hold and recordings if (is_dir($_SERVER["PROJECT_ROOT"].'/app/music_on_hold')) { require_once "app/music_on_hold/resources/classes/switch_music_on_hold.php"; - $moh = new switch_music_on_hold; - $this->moh_list = $moh->list_moh(); + $music = new switch_music_on_hold; + $this->music_list = $music->get(); } if (is_dir($_SERVER["PROJECT_ROOT"].'/app/recordings')) { require_once "app/recordings/resources/classes/switch_recordings.php"; @@ -108,11 +108,19 @@ if (!class_exists('ringbacks')) { //start the select $select = "