Fix the sip profile path when the fusionpbx directory is inside the website root directory.

This commit is contained in:
Mark Crane
2014-12-31 23:34:17 +00:00
parent e5a69f5a7c
commit 2d70541b87

View File

@@ -67,7 +67,7 @@
$sip_profile_dir = '/usr/local/share/fusionpbx/resources/templates/conf/sip_profiles/*.xml';
}
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';
}
$xml_files = glob($sip_profile_dir);
foreach ($xml_files as &$xml_file) {