mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-31 09:33:48 +00:00
Only include section: configuration for the lua scripts that exist.
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user