From ca06335136572029ec4b77b4ea2e21e3150d29c5 Mon Sep 17 00:00:00 2001 From: markjcrane Date: Fri, 15 Apr 2016 23:16:19 -0600 Subject: [PATCH] Set the full path to the config.lua script. --- app/scripts/resources/classes/scripts.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/scripts/resources/classes/scripts.php b/app/scripts/resources/classes/scripts.php index aa3a14a5f3..fd27f5e5e9 100644 --- a/app/scripts/resources/classes/scripts.php +++ b/app/scripts/resources/classes/scripts.php @@ -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();