summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2013-10-09 20:45:50 +0000
committerTed Trask <ttrask01@yahoo.com>2013-10-09 20:45:50 +0000
commit758822f2a74e849605d7ff06044b82e925d4d342 (patch)
tree521353ffb9e65cb785ae3698bc6e691aaf917dc0
parent33303026037583b46cd6fc88dfb4e0120d19bb8e (diff)
downloadacf-dnsmasq-758822f2a74e849605d7ff06044b82e925d4d342.tar.bz2
acf-dnsmasq-758822f2a74e849605d7ff06044b82e925d4d342.tar.xz
Change use of require to work with Lua 5.2
-rw-r--r--dnsmasq-config-html.lsp2
-rw-r--r--dnsmasq-model.lua2
2 files changed, 2 insertions, 2 deletions
diff --git a/dnsmasq-config-html.lsp b/dnsmasq-config-html.lsp
index f086bb9..1fa36bc 100644
--- a/dnsmasq-config-html.lsp
+++ b/dnsmasq-config-html.lsp
@@ -1,5 +1,5 @@
<% local form, viewlibrary, page_info, session = ...
-require("htmlviewfunctions")
+htmlviewfunctions = require("htmlviewfunctions")
%>
<% if viewlibrary and viewlibrary.dispatch_component then
diff --git a/dnsmasq-model.lua b/dnsmasq-model.lua
index 0e522d8..181f2cd 100644
--- a/dnsmasq-model.lua
+++ b/dnsmasq-model.lua
@@ -1,7 +1,7 @@
module(..., package.seeall)
-- Load libraries
-require("modelfunctions")
+modelfunctions = require("modelfunctions")
fs = require("acf.fs")
format = require("acf.format")
validator = require("acf.validator")