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:
@@ -26,10 +26,7 @@
|
||||
digit_timeout = "5000";
|
||||
|
||||
--check if a file exists
|
||||
function file_exists(name)
|
||||
local f=io.open(name,"r")
|
||||
if f~=nil then io.close(f) return true else return false end
|
||||
end
|
||||
require "resources.functions.file_exists"
|
||||
|
||||
--run if the session is ready
|
||||
if ( session:ready() ) then
|
||||
|
||||
Reference in New Issue
Block a user