summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2013-10-09 20:48:56 +0000
committerTed Trask <ttrask01@yahoo.com>2013-10-09 20:48:56 +0000
commit792a7f6ecbec2629830fd2b26bfdcd70ab2e7b39 (patch)
tree74aadb5ce199cd6c542269c01b921b97a3a2fbc7
parenta72f160930e03db34acea975a6936cfc0d408042 (diff)
downloadacf-freeswitch-792a7f6ecbec2629830fd2b26bfdcd70ab2e7b39.tar.bz2
acf-freeswitch-792a7f6ecbec2629830fd2b26bfdcd70ab2e7b39.tar.xz
Change use of require to work with Lua 5.2
-rw-r--r--freeswitch-listfiles-html.lsp2
-rw-r--r--freeswitch-model.lua4
2 files changed, 3 insertions, 3 deletions
diff --git a/freeswitch-listfiles-html.lsp b/freeswitch-listfiles-html.lsp
index 53af88d..f4a8bcc 100644
--- a/freeswitch-listfiles-html.lsp
+++ b/freeswitch-listfiles-html.lsp
@@ -1,5 +1,5 @@
<% local view, viewlibrary, page_info, session = ...
-require("htmlviewfunctions")
+htmlviewfunctions = require("htmlviewfunctions")
html = require("acf.html")
%>
diff --git a/freeswitch-model.lua b/freeswitch-model.lua
index 3c0a8ab..ffdc699 100644
--- a/freeswitch-model.lua
+++ b/freeswitch-model.lua
@@ -1,8 +1,8 @@
module (..., package.seeall)
-- Load libraries
-require("modelfunctions")
-require("posix")
+modelfunctions = require("modelfunctions")
+posix = require("posix")
fs = require("acf.fs")
format = require("acf.format")
validator = require("acf.validator")