From 80808959d2f23b1c3c01653a3e326a59cf2a5638 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Mon, 8 Aug 2016 09:35:06 -0600 Subject: [PATCH] Update scripts.php Add conf_dir to lua.conf --- app/scripts/resources/classes/scripts.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/scripts/resources/classes/scripts.php b/app/scripts/resources/classes/scripts.php index 39c8dc6afb..88a386cb1a 100644 --- a/app/scripts/resources/classes/scripts.php +++ b/app/scripts/resources/classes/scripts.php @@ -184,12 +184,12 @@ if (!class_exists('scripts')) { //make the config.lua $tmp = "\n"; $tmp .= "--set the variables\n"; + if (strlen($_SESSION['switch']['conf']['dir']) > 0) { + $tmp .= $this->correct_path(" conf_dir = [[".$_SESSION['switch']['conf']['dir']."]];\n"); + } if (strlen($_SESSION['switch']['sounds']['dir']) > 0) { $tmp .= $this->correct_path(" sounds_dir = [[".$_SESSION['switch']['sounds']['dir']."]];\n"); } - if (strlen($_SESSION['switch']['phrases']['dir']) > 0) { - $tmp .= $this->correct_path(" phrases_dir = [[".$_SESSION['switch']['phrases']['dir']."]];\n"); - } if (strlen($_SESSION['switch']['db']['dir']) > 0) { $tmp .= $this->correct_path(" database_dir = [[".$_SESSION['switch']['db']['dir']."]];\n"); }