Update ringbacks.php

This commit is contained in:
FusionPBX 2018-03-29 19:27:22 -06:00 committed by GitHub
parent 863c35f60c
commit a2dfb76a47
1 changed files with 4 additions and 4 deletions

View File

@ -56,7 +56,7 @@ if (!class_exists('ringbacks')) {
//get the ringback types
$sql = "select * from v_vars ";
$sql .= "where var_cat = 'Ringtones' ";
$sql .= "where var_category = 'Ringtones' ";
$sql .= "order by var_name asc ";
$prep_statement = $this->db->prepare(check_sql($sql));
$prep_statement->execute();
@ -92,9 +92,9 @@ if (!class_exists('ringbacks')) {
*/
//get the tones
require_once "resources/classes/tones.php";
$tones = new tones;
$this->tones_list = $tones->tones_list();
require_once "resources/classes/tones.php";
$tones = new tones;
$this->tones_list = $tones->tones_list();
//get music on hold and recordings
if (is_dir($_SERVER["PROJECT_ROOT"].'/app/music_on_hold')) {