Update destinations.php

Simplify the label for the Destination select list when it doesn't match any of the preset destinations.
This commit is contained in:
FusionPBX
2016-09-02 09:26:07 -06:00
committed by GitHub
parent 604a45f3af
commit d68e292e0f

View File

@@ -254,7 +254,9 @@ class destinations {
}
if (!$select_found) {
$destination_label = str_replace(":", " ", $destination_value);
$destination_label = str_replace("menu-exec-app:", " ", $destination_label);
$destination_label = str_replace("menu-exec-app", "", $destination_label);
$destination_label = str_replace("transfer", "", $destination_label);
$destination_label = str_replace("XML ".$_SESSION['domain_name'], "", $destination_label);
$response .= " <option value='".$destination_value."' selected='selected'>".trim($destination_label)."</option>\n";
}
$response .= " </select>\n";