Update destinations.php

This commit is contained in:
FusionPBX 2018-01-09 12:43:23 -07:00 committed by GitHub
parent 0a414da71d
commit 98f32c27a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 138 additions and 134 deletions

View File

@ -48,6 +48,9 @@ class destinations {
//set the global variables
global $db_type;
//get the destinations
if (!is_array($this->destinations)) {
//get the array from the app_config.php files
$config_list = glob($_SERVER["DOCUMENT_ROOT"] . PROJECT_PATH . "/*/*/app_config.php");
$x = 0;
@ -134,6 +137,7 @@ class destinations {
$this->destinations[$x]['result']['data'][$y]['name'] = '*732';
$this->destinations[$x]['result']['data'][$y]['destination'] = '*732 XML ${context}';
$y++;
}
//remove special characters from the name
$destination_id = str_replace("]", "", $destination_name);