From 758822f2a74e849605d7ff06044b82e925d4d342 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Wed, 9 Oct 2013 20:45:50 +0000 Subject: Change use of require to work with Lua 5.2 --- dnsmasq-config-html.lsp | 2 +- dnsmasq-model.lua | 2 +- 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") -- cgit v1.2.3