Change $_SESSION['switch']['gateways'] to $_SESSION['switch']['sip_profiles'].

This commit is contained in:
Mark Crane
2014-03-22 00:54:56 +00:00
parent 705d7fd295
commit 8f5f98b090

View File

@@ -60,10 +60,10 @@ if (strlen($_GET["id"])>0) {
//delete the xml file
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 {
$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)) {
unlink($gateway_xml_file);