Change $_SESSION['switch']['gateways'] to $_SESSION['switch']['sip_profiles'].
This commit is contained in:
parent
57cae54878
commit
a1a48a4e8d
|
|
@ -60,10 +60,10 @@ if (strlen($_GET["id"])>0) {
|
||||||
|
|
||||||
//delete the xml file
|
//delete the xml file
|
||||||
if (count($_SESSION["domains"]) > 1) {
|
if (count($_SESSION["domains"]) > 1) {
|
||||||
$gateway_xml_file = $_SESSION['switch']['gateways']['dir']."/".$profile."/v_".$_SESSION['domain_name'].'-'.$gateway.".xml";
|
$gateway_xml_file = $_SESSION['switch']['sip_profiles']['dir']."/".$profile."/v_".$_SESSION['domain_name'].'-'.$gateway.".xml";
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$gateway_xml_file = $_SESSION['switch']['gateways']['dir']."/".$profile."/v_".$gateway_uuid.".xml";
|
$gateway_xml_file = $_SESSION['switch']['sip_profiles']['dir']."/".$profile."/v_".$gateway_uuid.".xml";
|
||||||
}
|
}
|
||||||
if (file_exists($gateway_xml_file)) {
|
if (file_exists($gateway_xml_file)) {
|
||||||
unlink($gateway_xml_file);
|
unlink($gateway_xml_file);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue