Revert "Revert "Change. Use require "resources.functions.config" to load co…"

This commit is contained in:
Alexey Melnichuk
2015-08-11 05:06:33 +03:00
parent f5d62c678f
commit 69717e31d5
69 changed files with 294 additions and 507 deletions
@@ -19,8 +19,8 @@
-- the Initial Developer. All Rights Reserved.
--add functions
dofile(scripts_dir.."/resources/functions/file_exists.lua");
dofile(scripts_dir.."/resources/functions/trim.lua");
require "resources.functions.file_exists";
require "resources.functions.trim";
--set the api object
api = freeswitch.API();
@@ -32,7 +32,7 @@
end
--connect to the database
dofile(scripts_dir.."/resources/functions/database_handle.lua");
require "resources.functions.database_handle";
dbh = database_handle('system');
--get the cache
@@ -64,7 +64,7 @@
else
--add the function
dofile(scripts_dir.."/resources/functions/explode.lua");
require "resources.functions.explode";
--parse the cache
array = explode("&", cache);