Update ringbacks.php

This commit is contained in:
FusionPBX 2018-03-29 19:27:22 -06:00 committed by GitHub
parent 806afaeb30
commit bf411b6175
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

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