Move config.php into install -> app defaults method.

This commit is contained in:
markjcrane
2015-11-27 18:13:13 -07:00
parent 25e67742a5
commit 1408ca0b8a
2 changed files with 13 additions and 11 deletions
-9
View File
@@ -303,15 +303,6 @@ if(!$install_step) { $install_step = 'select_language'; }
}
}
//include the config.php
if (file_exists($_SERVER['DOCUMENT_ROOT'].PROJECT_PATH."/resources/config.php")) {
require_once $_SERVER['DOCUMENT_ROOT'].PROJECT_PATH."/resources/config.php";
} elseif (file_exists("/etc/fusionpbx/config.php")) {
require_once "/etc/fusionpbx/config.php";
} elseif (file_exists("/usr/local/etc/fusionpbx/config.php")) {
require_once "/usr/local/etc/fusionpbx/config.php";
}
require_once "resources/classes/install_switch.php";
$switch = new install_switch($domain_name, $domain_uuid, $switch_detect);
//$switch->debug = true;