summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2013-10-09 21:02:06 +0000
committerTed Trask <ttrask01@yahoo.com>2013-10-09 21:02:06 +0000
commit9b6f535853515cd9a0d1cec4b8d688184819f559 (patch)
treeba54849f59027078a5a5ff8d412e38176b56d068
parent49cbcaba71cd29d7679acfa0958b024724f10c17 (diff)
downloadacf-openssl-9b6f535853515cd9a0d1cec4b8d688184819f559.tar.bz2
acf-openssl-9b6f535853515cd9a0d1cec4b8d688184819f559.tar.xz
Change use of require to work with Lua 5.2
-rw-r--r--openssl-checkenvironment-html.lsp2
-rw-r--r--openssl-editconfigfile-html.lsp2
-rw-r--r--openssl-model.lua4
-rw-r--r--openssl-putcacert-html.lsp2
-rw-r--r--openssl-read-html.lsp2
-rw-r--r--openssl-status-html.lsp2
6 files changed, 7 insertions, 7 deletions
diff --git a/openssl-checkenvironment-html.lsp b/openssl-checkenvironment-html.lsp
index 8cf44d1..2e4f9c4 100644
--- a/openssl-checkenvironment-html.lsp
+++ b/openssl-checkenvironment-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>
diff --git a/openssl-editconfigfile-html.lsp b/openssl-editconfigfile-html.lsp
index bff262a..46aa4d4 100644
--- a/openssl-editconfigfile-html.lsp
+++ b/openssl-editconfigfile-html.lsp
@@ -1,5 +1,5 @@
<% local form, viewlibrary, page_info, session = ... %>
-<% require("htmlviewfunctions") %>
+<% htmlviewfunctions = require("htmlviewfunctions") %>
<% htmlviewfunctions.displaycommandresults({"checkenvironment"}, session, true) %>
diff --git a/openssl-model.lua b/openssl-model.lua
index b9c48a7..c2bcbf5 100644
--- a/openssl-model.lua
+++ b/openssl-model.lua
@@ -1,7 +1,7 @@
module(..., package.seeall)
-require("posix")
-require("modelfunctions")
+posix = require("posix")
+modelfunctions = require("modelfunctions")
fs = require("acf.fs")
format = require("acf.format")
validator = require("acf.validator")
diff --git a/openssl-putcacert-html.lsp b/openssl-putcacert-html.lsp
index 26c63c2..a4a0609 100644
--- a/openssl-putcacert-html.lsp
+++ b/openssl-putcacert-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>
diff --git a/openssl-read-html.lsp b/openssl-read-html.lsp
index c362b6d..25fa297 100644
--- a/openssl-read-html.lsp
+++ b/openssl-read-html.lsp
@@ -1,5 +1,5 @@
<% local view, viewlibrary, page_info, session = ... %>
-<% require("htmlviewfunctions") %>
+<% htmlviewfunctions = require("htmlviewfunctions") %>
<% html = require("acf.html") %>
<script type="text/javascript">
diff --git a/openssl-status-html.lsp b/openssl-status-html.lsp
index 3a5e504..2a3e44f 100644
--- a/openssl-status-html.lsp
+++ b/openssl-status-html.lsp
@@ -1,5 +1,5 @@
<% local view, viewlibrary, page_info, session = ... %>
-<% require("htmlviewfunctions") %>
+<% htmlviewfunctions = require("htmlviewfunctions") %>
<% html = require("acf.html") %>
<% htmlviewfunctions.displaycommandresults({"checkenvironment", "putcacert", "generatecacert"}, session, true) %>