Przeglądaj źródła

Update destinations.php

Simplify the label for the Destination select list when it doesn't match any of the preset destinations.
FusionPBX 9 lat temu
rodzic
commit
cde1e3cda1
1 zmienionych plików z 3 dodań i 1 usunięć
  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";