Set the full path to the config.lua script.

This commit is contained in:
markjcrane 2016-04-15 23:16:19 -06:00
parent 7277ed8f49
commit ca06335136
1 changed files with 1 additions and 3 deletions

View File

@ -161,7 +161,7 @@ if (!class_exists('scripts')) {
$config = "/usr/local/etc/fusionpbx/config.lua";
}
else {
$script_dir = $_SESSION['switch']['scripts']['dir'];
$config = $_SESSION['switch']['scripts']['dir']."/resources/config.lua";
}
$fout = fopen($config,"w");
if(!$fout){
@ -271,8 +271,6 @@ if (!class_exists('scripts')) {
} //end scripts class
}
/*
//example use
//update config.lua
$obj = new scripts;
$obj->write_config();