diff options
author | Ted Trask <ttrask01@yahoo.com> | 2013-10-09 21:02:48 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2013-10-09 21:02:48 +0000 |
commit | 537d42356d5558701888e78121bfcdd100bf01db (patch) | |
tree | 2c4619f83c02fc553e25f44373ed5a4ce257da61 | |
parent | ab31c2f71417b6d8b69f2d779c0371d12efd85c5 (diff) | |
download | acf-openvpn-537d42356d5558701888e78121bfcdd100bf01db.tar.bz2 acf-openvpn-537d42356d5558701888e78121bfcdd100bf01db.tar.xz |
Change use of require to work with Lua 5.2
-rw-r--r-- | openvpn-listcerts-html.lsp | 2 | ||||
-rw-r--r-- | openvpn-model.lua | 4 | ||||
-rw-r--r-- | openvpn-uploadcert-html.lsp | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/openvpn-listcerts-html.lsp b/openvpn-listcerts-html.lsp index 7a47e1c..e0043c0 100644 --- a/openvpn-listcerts-html.lsp +++ b/openvpn-listcerts-html.lsp @@ -1,5 +1,5 @@ <% local view, viewlibrary, page_info, session = ... %> -<% require("htmlviewfunctions") %> +<% htmlviewfunctions = require("htmlviewfunctions") %> <% html = require("acf.html") %> <% htmlviewfunctions.displaycommandresults({"deletecert", "generatedhparams"}, session) %> diff --git a/openvpn-model.lua b/openvpn-model.lua index db7513b..4abeef0 100644 --- a/openvpn-model.lua +++ b/openvpn-model.lua @@ -1,7 +1,7 @@ module (..., package.seeall) -require("modelfunctions") -require("posix") +modelfunctions = require("modelfunctions") +posix = require("posix") format = require("acf.format") fs = require("acf.fs") processinfo = require("acf.processinfo") diff --git a/openvpn-uploadcert-html.lsp b/openvpn-uploadcert-html.lsp index 76ad8c1..4f9d5ee 100644 --- a/openvpn-uploadcert-html.lsp +++ b/openvpn-uploadcert-html.lsp @@ -1,5 +1,5 @@ <% local form, viewlibrary, page_info = ... %> -<% require("htmlviewfunctions") %> +<% htmlviewfunctions = require("htmlviewfunctions") %> <% html = require("acf.html") %> <H1><%= html.html_escape(form.label) %></H1> |