diff options
author | Ted Trask <ttrask01@yahoo.com> | 2013-10-09 20:48:17 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2013-10-09 20:48:17 +0000 |
commit | 42aaaedefa366ca45f8cdc02be43968a02e3956c (patch) | |
tree | a393eadf4b1871e18fba6ecd63d76295db7e9c4f | |
parent | 99fe028c64ac14ca89e355ba2473bc36b52c91e3 (diff) | |
download | acf-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.lua | 2 | ||||
-rw-r--r-- | vmail-listmessages-html.lsp | 2 | ||||
-rw-r--r-- | vmail-listusers-html.lsp | 2 | ||||
-rw-r--r-- | vmail-model.lua | 6 |
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" |