From 72037fc19ec9226d1cca89e4d87f03f7c9530936 Mon Sep 17 00:00:00 2001 From: markjcrane Date: Thu, 16 Jul 2015 12:34:01 -0700 Subject: [PATCH] Fix the sip profile loading during the install or when using app -> defaults. --- app/sip_profiles/app_defaults.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/sip_profiles/app_defaults.php b/app/sip_profiles/app_defaults.php index 0e87889da4..24d9cf2d80 100644 --- a/app/sip_profiles/app_defaults.php +++ b/app/sip_profiles/app_defaults.php @@ -61,13 +61,13 @@ $row = $prep_statement->fetch(PDO::FETCH_ASSOC); if ($row['num_rows'] == 0) { if (file_exists('/usr/share/examples/fusionpbx/resources/templates/conf/sip_profiles')) { - $sip_profile_dir = '/usr/share/examples/fusionpbx/resources/templates/conf/sip_profiles/*.xml'; + $sip_profile_dir = '/usr/share/examples/fusionpbx/resources/templates/conf/sip_profiles/*.xml.noload'; } elseif (file_exists('/usr/local/share/fusionpbx/resources/templates/conf/sip_profiles')) { - $sip_profile_dir = '/usr/local/share/fusionpbx/resources/templates/conf/sip_profiles/*.xml'; + $sip_profile_dir = '/usr/local/share/fusionpbx/resources/templates/conf/sip_profiles/*.xml.noload'; } else { - $sip_profile_dir = $_SERVER["DOCUMENT_ROOT"].PROJECT_PATH.'/resources/templates/conf/sip_profiles/*.xml'; + $sip_profile_dir = $_SERVER["DOCUMENT_ROOT"].PROJECT_PATH.'/resources/templates/conf/sip_profiles/*.xml.noload'; } $db->beginTransaction(); $xml_files = glob($sip_profile_dir);