Change. Use only require to load function.

Fix. Remove multiple definition of same function.
This commit is contained in:
Alexey Melnichuk
2015-08-10 12:43:06 +04:00
parent 565395c44f
commit 703b61636a
64 changed files with 207 additions and 400 deletions

View File

@@ -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();

View File

@@ -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);