summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2013-10-09 20:45:07 +0000
committerTed Trask <ttrask01@yahoo.com>2013-10-09 20:45:07 +0000
commit3376bd99df1baa9105d37a45ed9f1412be4243cb (patch)
treefa002e745e634524755e2f51bb423a1646e723d4
parent13e12be02111270a92db0737874e593019ea9377 (diff)
downloadacf-dnscache-3376bd99df1baa9105d37a45ed9f1412be4243cb.tar.bz2
acf-dnscache-3376bd99df1baa9105d37a45ed9f1412be4243cb.tar.xz
Change use of require to work with Lua 5.2
-rw-r--r--dnscache-config-html.lsp2
-rw-r--r--dnscache-listdomains-html.lsp2
-rw-r--r--dnscache-model.lua4
3 files changed, 4 insertions, 4 deletions
diff --git a/dnscache-config-html.lsp b/dnscache-config-html.lsp
index c5234ca..f29644c 100644
--- a/dnscache-config-html.lsp
+++ b/dnscache-config-html.lsp
@@ -1,5 +1,5 @@
<% local form, viewlibrary, page_info, session = ...
-require("htmlviewfunctions")
+htmlviewfunctions = require("htmlviewfunctions")
%>
<% if viewlibrary and viewlibrary.dispatch_component then
diff --git a/dnscache-listdomains-html.lsp b/dnscache-listdomains-html.lsp
index ea4c350..a28519e 100644
--- a/dnscache-listdomains-html.lsp
+++ b/dnscache-listdomains-html.lsp
@@ -1,5 +1,5 @@
<% local data, viewlibrary, page_info, session = ...
-require("htmlviewfunctions")
+htmlviewfunctions = require("htmlviewfunctions")
html = require("acf.html")
%>
diff --git a/dnscache-model.lua b/dnscache-model.lua
index 7a028a4..192e04c 100644
--- a/dnscache-model.lua
+++ b/dnscache-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")