summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2013-10-09 20:50:04 +0000
committerTed Trask <ttrask01@yahoo.com>2013-10-09 20:50:04 +0000
commitada03db6371b22e543423eec682cab375b3aabfd (patch)
tree75632357023378d025dddbbd2a1da0af35caef6c
parent64f75576630ae3b075b4c45cf4a87f89cb9c0c43 (diff)
downloadacf-heimdal-ada03db6371b22e543423eec682cab375b3aabfd.tar.bz2
acf-heimdal-ada03db6371b22e543423eec682cab375b3aabfd.tar.xz
Change use of require to work with Lua 5.2
-rw-r--r--heimdal-klist-html.lsp2
-rw-r--r--heimdal-model.lua2
2 files changed, 2 insertions, 2 deletions
diff --git a/heimdal-klist-html.lsp b/heimdal-klist-html.lsp
index b4a13ed..2692be9 100644
--- a/heimdal-klist-html.lsp
+++ b/heimdal-klist-html.lsp
@@ -1,5 +1,5 @@
<% local data, viewlibrary, page_info, session = ... %>
-<% require("htmlviewfunctions") %>
+<% htmlviewfunctions = require("htmlviewfunctions") %>
<% html = require("acf.html") %>
<% htmlviewfunctions.displaycommandresults({"kdestroy"}, session) %>
diff --git a/heimdal-model.lua b/heimdal-model.lua
index 7af12c4..5cd9ecc 100644
--- a/heimdal-model.lua
+++ b/heimdal-model.lua
@@ -1,7 +1,7 @@
module(..., package.seeall)
-- Load libraries
-require("modelfunctions")
+modelfunctions = require("modelfunctions")
fs = require("acf.fs")
-- Set variables