mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
Change. Use only require to load function.
Fix. Remove multiple definition of same function.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user