From dfb682d010dc2235116fcdc5f1db2db7b85fbf61 Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Tue, 30 Apr 2013 07:17:47 +0000 Subject: [PATCH] Only include section: configuration for the lua scripts that exist. --- includes/install/scripts/app/xml_handler/index.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/includes/install/scripts/app/xml_handler/index.lua b/includes/install/scripts/app/xml_handler/index.lua index 789c0365e0..c82a574a2f 100644 --- a/includes/install/scripts/app/xml_handler/index.lua +++ b/includes/install/scripts/app/xml_handler/index.lua @@ -117,7 +117,13 @@ --process the sections if (XML_REQUEST["section"] == "configuration") then - dofile(scripts_dir.."/app/xml_handler/resources/scripts/configuration/"..XML_REQUEST["key_value"]..".lua"); + configuration = scripts_dir.."/app/xml_handler/resources/scripts/configuration/"..XML_REQUEST["key_value"]..".lua"; + if (debug["xml_request"]) then + freeswitch.consoleLog("notice", "[xml_handler] " .. configuration .. "\n"); + end + if (file_exists(configuration)) then + dofile(configuration); + end end if (XML_REQUEST["section"] == "directory") then dofile(scripts_dir.."/app/xml_handler/resources/scripts/directory/directory.lua");