From a6fdcec63eb96609391ae9b9d53ff3fa7dc85c8d Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Tue, 29 Jul 2014 22:13:22 +0000 Subject: [PATCH] Change the path where the sip profiles defaults settings are picked up --- app/sip_profiles/app_defaults.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/sip_profiles/app_defaults.php b/app/sip_profiles/app_defaults.php index e0f1237f4f..98f6a99cae 100644 --- a/app/sip_profiles/app_defaults.php +++ b/app/sip_profiles/app_defaults.php @@ -32,7 +32,8 @@ $prep_statement->execute(); $row = $prep_statement->fetch(PDO::FETCH_ASSOC); if ($row['num_rows'] == 0) { - $xml_list = glob($_SESSION['switch']['conf']['dir']."/sip_profiles/*.xml"); + //$xml_list = glob($_SESSION['switch']['conf']['dir']."/sip_profiles/*.xml"); + $xml_list = glob($_SERVER["DOCUMENT_ROOT"]."/".PROJECT_PATH."resources/templates/conf/sip_profiles/*.xml"); foreach ($xml_list as &$xml_file) { //load the sip profile xml and save it into an array $sip_profile_xml = file_get_contents($xml_file);