summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2013-10-09 21:00:56 +0000
committerTed Trask <ttrask01@yahoo.com>2013-10-09 21:00:56 +0000
commit739a930c1f1825131d31d1ee7220fdfb83ad2538 (patch)
tree46832dc7c0ff9553864841d4deb966da9b001038
parentfba93db67ac4064c8b09ab871805f65c1edbb383 (diff)
downloadacf-openssh-739a930c1f1825131d31d1ee7220fdfb83ad2538.tar.bz2
acf-openssh-739a930c1f1825131d31d1ee7220fdfb83ad2538.tar.xz
Change use of require to work with Lua 5.2
-rw-r--r--openssh-config-html.lsp2
-rw-r--r--openssh-listauth-html.lsp2
-rw-r--r--openssh-model.lua4
3 files changed, 4 insertions, 4 deletions
diff --git a/openssh-config-html.lsp b/openssh-config-html.lsp
index c48fef8..2da497b 100644
--- a/openssh-config-html.lsp
+++ b/openssh-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/openssh-listauth-html.lsp b/openssh-listauth-html.lsp
index 3f99620..de89648 100644
--- a/openssh-listauth-html.lsp
+++ b/openssh-listauth-html.lsp
@@ -1,5 +1,5 @@
<% local view, viewlibrary, page_info, session = ... %>
-<% require("htmlviewfunctions") %>
+<% htmlviewfunctions = require("htmlviewfunctions") %>
<% html = require("acf.html") %>
<% htmlviewfunctions.displaycommandresults({"deleteauth"}, session) %>
diff --git a/openssh-model.lua b/openssh-model.lua
index b7cde44..4c81417 100644
--- a/openssh-model.lua
+++ b/openssh-model.lua
@@ -1,8 +1,8 @@
module(..., package.seeall)
-- Load libraries
-require("modelfunctions")
-require("posix")
+modelfunctions = require("modelfunctions")
+posix = require("posix")
validator = require("acf.validator")
fs = require("acf.fs")
format = require("acf.format")