From 3376bd99df1baa9105d37a45ed9f1412be4243cb Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Wed, 9 Oct 2013 20:45:07 +0000 Subject: Change use of require to work with Lua 5.2 --- dnscache-config-html.lsp | 2 +- dnscache-listdomains-html.lsp | 2 +- dnscache-model.lua | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dnscache-config-html.lsp b/dnscache-config-html.lsp index c5234ca..f29644c 100644 --- a/dnscache-config-html.lsp +++ b/dnscache-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/dnscache-listdomains-html.lsp b/dnscache-listdomains-html.lsp index ea4c350..a28519e 100644 --- a/dnscache-listdomains-html.lsp +++ b/dnscache-listdomains-html.lsp @@ -1,5 +1,5 @@ <% local data, viewlibrary, page_info, session = ... -require("htmlviewfunctions") +htmlviewfunctions = require("htmlviewfunctions") html = require("acf.html") %> diff --git a/dnscache-model.lua b/dnscache-model.lua index 7a028a4..192e04c 100644 --- a/dnscache-model.lua +++ b/dnscache-model.lua @@ -1,8 +1,8 @@ module(..., package.seeall) -- Load libraries -require("posix") -require("modelfunctions") +posix = require("posix") +modelfunctions = require("modelfunctions") fs = require("acf.fs") format = require("acf.format") validator = require("acf.validator") -- cgit v1.2.3