fixing /usr/share/fusionpbx to be /usr/share/examples/fusionpbx

This commit is contained in:
Richard Neese
2014-10-23 18:03:33 +00:00
parent a866c04b22
commit 49840b33da
7 changed files with 19 additions and 19 deletions
+2 -2
View File
@@ -78,8 +78,8 @@
if (is_dir($_SESSION['switch']['dialplan']['dir'])) {
//write the dialplan/default.xml if it does not exist
//set the path
if (file_exists('/usr/share/fusionpbx/resources/templates/conf')) {
$path = "/usr/share/fusionpbx/resources/templates/conf";
if (file_exists('/usr/share/examples/fusionpbx/resources/templates/conf')) {
$path = "/usr/share/examples/fusionpbx/resources/templates/conf";
}
else {
$path = $_SERVER["DOCUMENT_ROOT"].PROJECT_PATH.'/resources/templates/conf';
+2 -2
View File
@@ -182,8 +182,8 @@ include "root.php";
$switch_dialplan_dir = $this->switch_dialplan_dir;
if (is_dir($switch_dialplan_dir)) {
//copy resources/templates/conf to the freeswitch conf dir
if (file_exists('/usr/share/fusionpbx/resources/templates/conf')){
$src_dir = "/usr/share/fusionpbx/resources/templates/conf";
if (file_exists('/usr/share/examples/fusionpbx/resources/templates/conf')){
$src_dir = "/usr/share/examples/fusionpbx/resources/templates/conf";
}
else {
$src_dir = $_SERVER["DOCUMENT_ROOT"].PROJECT_PATH."/resources/templates/conf";
+1 -1
View File
@@ -33,7 +33,7 @@
if (file_exists('/etc/fusionpbx')) {
//linux
$custom = '/etc/fusionpbx/resources/templates/conf/sip_profiles';
$source = '/usr/share/fusionpbx/resources/templates/conf/sip_profiles';
$source = '/usr/share/examples/fusionpbx/resources/templates/conf/sip_profiles';
}
if (file_exists('/usr/local/etc/fusionpbx')) {
//bsd