From db68ed71e71fc443d47cea8c9c91b0302e8339ec Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Wed, 9 Oct 2013 20:55:27 +0000 Subject: Change use of require to work with Lua 5.2 --- kamailio-listfiles-html.lsp | 2 +- kamailio-listtables-html.lsp | 2 +- kamailio-listusers-html.lsp | 2 +- kamailio-model.lua | 4 ++-- kamailio-searchdatabase-html.lsp | 2 +- kamailio-viewtable-html.lsp | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/kamailio-listfiles-html.lsp b/kamailio-listfiles-html.lsp index e99c936..d63398c 100644 --- a/kamailio-listfiles-html.lsp +++ b/kamailio-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/kamailio-listtables-html.lsp b/kamailio-listtables-html.lsp index fec3ac4..e6f8733 100644 --- a/kamailio-listtables-html.lsp +++ b/kamailio-listtables-html.lsp @@ -1,5 +1,5 @@ <% local form, viewlibrary, page_info, session = ... %> -<% require("htmlviewfunctions") %> +<% htmlviewfunctions = require("htmlviewfunctions") %> <% html = require("acf.html") %> <% htmlviewfunctions.displaycommandresults({"createdatabase"}, session) %> diff --git a/kamailio-listusers-html.lsp b/kamailio-listusers-html.lsp index d5ea4f9..c631716 100644 --- a/kamailio-listusers-html.lsp +++ b/kamailio-listusers-html.lsp @@ -1,5 +1,5 @@ <% local form, viewlibrary, page_info, session = ... %> -<% require("htmlviewfunctions") %> +<% htmlviewfunctions = require("htmlviewfunctions") %> <% html = require("acf.html") %> <% htmlviewfunctions.displaycommandresults({"deleteuser", "updateuser"}, session) %> diff --git a/kamailio-model.lua b/kamailio-model.lua index 2243145..e1fc31e 100644 --- a/kamailio-model.lua +++ b/kamailio-model.lua @@ -1,8 +1,8 @@ module(..., package.seeall) -- Load libraries -require("posix") -require("modelfunctions") +posix = require("posix") +modelfunctions = require("modelfunctions") fs = require("acf.fs") format = require("acf.format") validator = require("acf.validator") diff --git a/kamailio-searchdatabase-html.lsp b/kamailio-searchdatabase-html.lsp index e2538fb..8a55f48 100644 --- a/kamailio-searchdatabase-html.lsp +++ b/kamailio-searchdatabase-html.lsp @@ -1,5 +1,5 @@ <% local form, viewlibrary, page_info = ... -require("htmlviewfunctions") +htmlviewfunctions = require("htmlviewfunctions") html = require("acf.html") %> diff --git a/kamailio-viewtable-html.lsp b/kamailio-viewtable-html.lsp index e1531d0..5e8f83a 100644 --- a/kamailio-viewtable-html.lsp +++ b/kamailio-viewtable-html.lsp @@ -1,5 +1,5 @@ <% local form, viewlibrary, page_info, session = ... %> -<% require("htmlviewfunctions") %> +<% htmlviewfunctions = require("htmlviewfunctions") %> <% html = require("acf.html") %> <% htmlviewfunctions.displaycommandresults({"deletetableentry", "updatetableentry"}, session) %> -- cgit v1.2.3