summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2013-10-09 20:48:17 +0000
committerTed Trask <ttrask01@yahoo.com>2013-10-09 20:48:17 +0000
commit42aaaedefa366ca45f8cdc02be43968a02e3956c (patch)
treea393eadf4b1871e18fba6ecd63d76295db7e9c4f
parent99fe028c64ac14ca89e355ba2473bc36b52c91e3 (diff)
downloadacf-freeswitch-vmail-42aaaedefa366ca45f8cdc02be43968a02e3956c.tar.bz2
acf-freeswitch-vmail-42aaaedefa366ca45f8cdc02be43968a02e3956c.tar.xz
Change use of require to work with Lua 5.2
-rw-r--r--authenticator-freeswitch-vmail.lua2
-rw-r--r--vmail-listmessages-html.lsp2
-rw-r--r--vmail-listusers-html.lsp2
-rw-r--r--vmail-model.lua6
4 files changed, 6 insertions, 6 deletions
diff --git a/authenticator-freeswitch-vmail.lua b/authenticator-freeswitch-vmail.lua
index 38e6342..423121d 100644
--- a/authenticator-freeswitch-vmail.lua
+++ b/authenticator-freeswitch-vmail.lua
@@ -1,7 +1,7 @@
-- Copy of authenticator-plaintext, plus added authentication from voicemail DB
module (..., package.seeall)
-require("md5")
+md5 = require("md5")
list_fields = function(self, tabl)
return nil
diff --git a/vmail-listmessages-html.lsp b/vmail-listmessages-html.lsp
index 53d9187..9c506ca 100644
--- a/vmail-listmessages-html.lsp
+++ b/vmail-listmessages-html.lsp
@@ -1,5 +1,5 @@
<% local view, viewlibrary, page_info, session = ...
-require("htmlviewfunctions")
+htmlviewfunctions = require("htmlviewfunctions")
html = require("acf.html")
%>
diff --git a/vmail-listusers-html.lsp b/vmail-listusers-html.lsp
index 63d517d..64ec3bc 100644
--- a/vmail-listusers-html.lsp
+++ b/vmail-listusers-html.lsp
@@ -1,5 +1,5 @@
<% local view, viewlibrary, page_info, session = ...
-require("htmlviewfunctions")
+htmlviewfunctions = require("htmlviewfunctions")
html = require("acf.html")
%>
diff --git a/vmail-model.lua b/vmail-model.lua
index 4be6fa9..e93a121 100644
--- a/vmail-model.lua
+++ b/vmail-model.lua
@@ -1,13 +1,13 @@
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")
db = require("acf.db")
-require("session")
+session = require("session")
-- Set variables
local configfile = "/etc/freeswitchvmail.conf"