From a1a48a4e8d4e293900f52179e29bae33f049742b Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Sat, 22 Mar 2014 00:54:56 +0000 Subject: [PATCH] Change $_SESSION['switch']['gateways'] to $_SESSION['switch']['sip_profiles']. --- app/gateways/gateway_delete.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/gateways/gateway_delete.php b/app/gateways/gateway_delete.php index 002a40eb88..ec22c246b3 100644 --- a/app/gateways/gateway_delete.php +++ b/app/gateways/gateway_delete.php @@ -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);