Update destinations.php
This commit is contained in:
parent
64f338bc2b
commit
b4d1d5270b
|
|
@ -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("✉", '{email-icon}', $select_label);
|
||||
$select_label = escape(trim($select_label));
|
||||
$select_label = str_replace('{email-icon}', '✉', $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")) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue