summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2013-10-09 20:59:17 +0000
committerTed Trask <ttrask01@yahoo.com>2013-10-09 20:59:17 +0000
commitf4818065de65fde4b2a76f1ea0c13e92fb448822 (patch)
treeb27e3fd3a485cdc6787fbd9cbed5c0f9e9723a31
parent32aa5ec8447183460c1a911ace42b986bc4b6de0 (diff)
downloadacf-opennhrp-f4818065de65fde4b2a76f1ea0c13e92fb448822.tar.bz2
acf-opennhrp-f4818065de65fde4b2a76f1ea0c13e92fb448822.tar.xz
Change use of require to work with Lua 5.2
-rw-r--r--opennhrp-editinterface-html.lsp2
-rw-r--r--opennhrp-listinterfaces-html.lsp2
-rw-r--r--opennhrp-model.lua2
-rw-r--r--opennhrp-show-html.lsp2
4 files changed, 4 insertions, 4 deletions
diff --git a/opennhrp-editinterface-html.lsp b/opennhrp-editinterface-html.lsp
index 6caa8d1..76d37a2 100644
--- a/opennhrp-editinterface-html.lsp
+++ b/opennhrp-editinterface-html.lsp
@@ -1,5 +1,5 @@
<% local form, viewlibrary, page_info = ...
-require("htmlviewfunctions")
+htmlviewfunctions = require("htmlviewfunctions")
html = require("acf.html")
%>
diff --git a/opennhrp-listinterfaces-html.lsp b/opennhrp-listinterfaces-html.lsp
index 9794645..044de2e 100644
--- a/opennhrp-listinterfaces-html.lsp
+++ b/opennhrp-listinterfaces-html.lsp
@@ -1,5 +1,5 @@
<% local view, viewlibrary, page_info, session = ...
-require("htmlviewfunctions")
+htmlviewfunctions = require("htmlviewfunctions")
html = require("acf.html")
%>
diff --git a/opennhrp-model.lua b/opennhrp-model.lua
index c59e22e..29f2e1f 100644
--- a/opennhrp-model.lua
+++ b/opennhrp-model.lua
@@ -1,7 +1,7 @@
module(..., package.seeall)
-- Load libraries
-require("modelfunctions")
+modelfunctions = require("modelfunctions")
validator = require("acf.validator")
fs = require("acf.fs")
diff --git a/opennhrp-show-html.lsp b/opennhrp-show-html.lsp
index 241973d..e168863 100644
--- a/opennhrp-show-html.lsp
+++ b/opennhrp-show-html.lsp
@@ -1,5 +1,5 @@
<% local data, viewlibrary, page_info = ...
-require("htmlviewfunctions")
+htmlviewfunctions = require("htmlviewfunctions")
html = require("acf.html")
%>