Browse Source

Update destinations.php

FusionPBX 7 năm trước cách đây
mục cha
commit
9b4a44d6f3
1 tập tin đã thay đổi với 5 bổ sung3 xóa
  1. 5 3
      resources/classes/destinations.php

+ 5 - 3
resources/classes/destinations.php

@@ -259,10 +259,12 @@ class destinations {
 					$select_value = str_replace("\${context}", $_SESSION['domain_name'], $select_value);
 					$select_label = str_replace("\${domain_name}", $_SESSION['domain_name'], $select_label);
 					$select_label = str_replace("\${context}", $_SESSION['domain_name'], $select_label);
-					$select_label = trim($select_label);
+					$select_label = str_replace("&#9993", '{email-icon}', $select_label);
+					$select_label = escape(trim($select_label));
+					$select_label = str_replace('{email-icon}', '&#9993', $select_label);
 					if ($select_value == $destination_value) { $selected = "selected='selected' "; $select_found = true; } else { $selected = ''; }
 					if ($label2 == 'destinations') { $select_label = format_phone($select_label); }
-					$response .= "			<option value='".escape($select_value)."' ".$selected.">".escape($select_label)."</option>\n";
+					$response .= "			<option value='".escape($select_value)."' ".$selected.">".$select_label."</option>\n";
 				}
 				$response .= "		</optgroup>\n";
 				unset($text);
@@ -273,7 +275,7 @@ class destinations {
 			$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='".escape($destination_value)."' selected='selected'>".escape(trim($destination_label))."</option>\n";
+			$response .= "			<option value='".escape($destination_value)."' selected='selected'>".trim($destination_label)."</option>\n";
 		}
 		$response .= "	</select>\n";
 		if (if_group("superadmin")) {