stored config_lua path correctly

This commit is contained in:
Matthew Vale
2015-12-01 16:47:18 +00:00
parent 64f103ddbb
commit 8c8cf44b4c
2 changed files with 4 additions and 4 deletions

View File

@@ -50,12 +50,12 @@ include "root.php";
$this->domain = $domain_name;
$this->detect_switch = $detect_switch;
if (is_dir("/etc/fusionpbx")){
$config = "/etc/fusionpbx/config.lua";
$this->config_lua = "/etc/fusionpbx/config.lua";
} elseif (is_dir("/usr/local/etc/fusionpbx")){
$config = "/usr/local/etc/fusionpbx/config.lua";
$this->config_lua = "/usr/local/etc/fusionpbx/config.lua";
}
else {
$config = $_SESSION['switch']['scripts']['dir']."/resources/config.lua";
$this->config_lua = $_SESSION['switch']['scripts']['dir']."/resources/config.lua";
}
$this->config_lua = normalize_path_to_os($this->config_lua);
}