Change. Use only require to load function.
Fix. Remove multiple definition of same function.
This commit is contained in:
@@ -28,13 +28,11 @@
|
||||
require "resources.functions.config";
|
||||
|
||||
--connect to the database
|
||||
dofile(scripts_dir.."/resources/functions/database_handle.lua");
|
||||
require "resources.functions.database_handle";
|
||||
dbh = database_handle('system');
|
||||
|
||||
--add a trim function
|
||||
function trim (s)
|
||||
return (string.gsub(s, "^%s*(.-)%s*$", "%1"))
|
||||
end
|
||||
--define the trim function
|
||||
require "resources.functions.trim"
|
||||
|
||||
--get the variables
|
||||
domain_name = session:getVariable("domain_name");
|
||||
|
||||
Reference in New Issue
Block a user