Browse Source

Update destinations.php

Simplify the label for the Destination select list when it doesn't match any of the preset destinations.
FusionPBX 9 năm trước cách đây
mục cha
commit
cde1e3cda1
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  1. 3 1
      resources/classes/destinations.php

+ 3 - 1
resources/classes/destinations.php

@@ -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";