summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2013-10-09 21:16:45 +0000
committerTed Trask <ttrask01@yahoo.com>2013-10-09 21:16:45 +0000
commit2c7c737a1142200129264ab677489047971f045e (patch)
tree950729a0657a7684f432cce5baf091ddaec5b01f
parent6731108f380a783cfe4a12dfa93de229b97fe29b (diff)
downloadacf-tinydns-2c7c737a1142200129264ab677489047971f045e.tar.bz2
acf-tinydns-2c7c737a1142200129264ab677489047971f045e.tar.xz
Change use of require to work with Lua 5.2
-rwxr-xr-xtinydns-config-html.lsp2
-rw-r--r--tinydns-edit-html.lsp2
-rw-r--r--tinydns-listfiles-html.lsp2
-rw-r--r--tinydns-listpermissions-html.lsp2
-rw-r--r--tinydns-model.lua8
-rw-r--r--tinydns-status-html.lsp2
6 files changed, 9 insertions, 9 deletions
diff --git a/tinydns-config-html.lsp b/tinydns-config-html.lsp
index 906b2d9..9264d05 100755
--- a/tinydns-config-html.lsp
+++ b/tinydns-config-html.lsp
@@ -1,5 +1,5 @@
<% local form, viewlibrary, page_info, session = ...
-require("htmlviewfunctions")
+htmlviewfunctions = require("htmlviewfunctions")
html = require("acf.html")
%>
diff --git a/tinydns-edit-html.lsp b/tinydns-edit-html.lsp
index 74c8353..d251638 100644
--- a/tinydns-edit-html.lsp
+++ b/tinydns-edit-html.lsp
@@ -1,5 +1,5 @@
<% local form, viewlibrary, page_info = ... %>
-<% require("htmlviewfunctions") %>
+<% htmlviewfunctions = require("htmlviewfunctions") %>
<% html = require("acf.html") %>
<% local domain = string.gsub(form.value.filename.value, "^.*/", "") %>
diff --git a/tinydns-listfiles-html.lsp b/tinydns-listfiles-html.lsp
index 55cbc27..470693f 100644
--- a/tinydns-listfiles-html.lsp
+++ b/tinydns-listfiles-html.lsp
@@ -1,5 +1,5 @@
<% local form, viewlibrary, page_info, session = ...
-require("htmlviewfunctions")
+htmlviewfunctions = require("htmlviewfunctions")
html = require("acf.html")
%>
diff --git a/tinydns-listpermissions-html.lsp b/tinydns-listpermissions-html.lsp
index 139e12a..f0f4379 100644
--- a/tinydns-listpermissions-html.lsp
+++ b/tinydns-listpermissions-html.lsp
@@ -1,5 +1,5 @@
<% local view, viewlibrary, page_info, session = ... %>
-<% require("htmlviewfunctions") %>
+<% htmlviewfunctions = require("htmlviewfunctions") %>
<% html = require("acf.html") %>
<% htmlviewfunctions.displaycommandresults({"edituserpermissions", "editrolepermissions"}, session) %>
diff --git a/tinydns-model.lua b/tinydns-model.lua
index c3d192c..1ef3bac 100644
--- a/tinydns-model.lua
+++ b/tinydns-model.lua
@@ -1,13 +1,13 @@
module(..., package.seeall)
-- Load libraries
-require("modelfunctions")
+modelfunctions = require("modelfunctions")
fs = require("acf.fs")
format = require("acf.format")
validator = require("acf.validator")
-require("authenticator")
-require("roles")
-require("posix")
+authenticator = require("authenticator")
+roles = require("roles")
+posix = require("posix")
-- Set variables
local configfiles = {}
diff --git a/tinydns-status-html.lsp b/tinydns-status-html.lsp
index 782370d..bdceb23 100644
--- a/tinydns-status-html.lsp
+++ b/tinydns-status-html.lsp
@@ -1,5 +1,5 @@
<% local data, viewlibrary, page_info, session = ...
-require("htmlviewfunctions")
+htmlviewfunctions = require("htmlviewfunctions")
html = require("acf.html")
%>