summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2013-10-09 20:58:38 +0000
committerTed Trask <ttrask01@yahoo.com>2013-10-09 20:58:38 +0000
commit3db77af821ca734d1b8dc72cc7bef25be056ad9c (patch)
tree534dc9090f807a042a470b53b4bf9cd1011daba1
parent64b581534e59d85366429b625c65bd99d991f0ff (diff)
downloadacf-mdadm-3db77af821ca734d1b8dc72cc7bef25be056ad9c.tar.bz2
acf-mdadm-3db77af821ca734d1b8dc72cc7bef25be056ad9c.tar.xz
Change use of require to work with Lua 5.2
-rw-r--r--mdadm-details-html.lsp2
-rw-r--r--mdadm-model.lua2
2 files changed, 2 insertions, 2 deletions
diff --git a/mdadm-details-html.lsp b/mdadm-details-html.lsp
index 905a057..778a3bf 100644
--- a/mdadm-details-html.lsp
+++ b/mdadm-details-html.lsp
@@ -1,5 +1,5 @@
<% local data, viewlibrary = ...
-require("htmlviewfunctions")
+htmlviewfunctions = require("htmlviewfunctions")
html = require("acf.html")
%>
diff --git a/mdadm-model.lua b/mdadm-model.lua
index 38af0e3..44183c4 100644
--- a/mdadm-model.lua
+++ b/mdadm-model.lua
@@ -1,7 +1,7 @@
module(..., package.seeall)
-- Load libraries
-require("modelfunctions")
+modelfunctions = require("modelfunctions")
fs = require("acf.fs")
format = require("acf.format")