summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2013-10-09 20:29:27 +0000
committerTed Trask <ttrask01@yahoo.com>2013-10-09 20:29:27 +0000
commit5dead1840ddd8e2053d4f13adf41fbbc74b9bbda (patch)
tree62835ac02d2e2d507a68ec4c78bbc4559373b835
parent018036d17cee0a987dcf656fb8aae13430736b69 (diff)
downloadacf-awall-5dead1840ddd8e2053d4f13adf41fbbc74b9bbda.tar.bz2
acf-awall-5dead1840ddd8e2053d4f13adf41fbbc74b9bbda.tar.xz
Change use of require to work with Lua 5.2
-rw-r--r--awall-listpolicies-html.lsp2
-rw-r--r--awall-model.lua6
2 files changed, 4 insertions, 4 deletions
diff --git a/awall-listpolicies-html.lsp b/awall-listpolicies-html.lsp
index 6955e4f..c816bfa 100644
--- a/awall-listpolicies-html.lsp
+++ b/awall-listpolicies-html.lsp
@@ -1,5 +1,5 @@
<% local form, viewlibrary, page_info, session = ...
-require("htmlviewfunctions")
+htmlviewfunctions = require("htmlviewfunctions")
html = require("acf.html")
%>
diff --git a/awall-model.lua b/awall-model.lua
index 7cec5b4..c8c6dc3 100644
--- a/awall-model.lua
+++ b/awall-model.lua
@@ -1,9 +1,9 @@
module(..., package.seeall)
-- Load libraries
-require("posix")
-require("json")
-require("modelfunctions")
+posix = require("posix")
+json = require("json")
+modelfunctions = require("modelfunctions")
fs = require("acf.fs")
-- Set variables