From 5dead1840ddd8e2053d4f13adf41fbbc74b9bbda Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Wed, 9 Oct 2013 20:29:27 +0000 Subject: Change use of require to work with Lua 5.2 --- awall-listpolicies-html.lsp | 2 +- awall-model.lua | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/awall-listpolicies-html.lsp b/awall-listpolicies-html.lsp index 6955e4f..c816bfa 100644 --- a/awall-listpolicies-html.lsp +++ b/awall-listpolicies-html.lsp @@ -1,5 +1,5 @@ <% local form, viewlibrary, page_info, session = ... -require("htmlviewfunctions") +htmlviewfunctions = require("htmlviewfunctions") html = require("acf.html") %> diff --git a/awall-model.lua b/awall-model.lua index 7cec5b4..c8c6dc3 100644 --- a/awall-model.lua +++ b/awall-model.lua @@ -1,9 +1,9 @@ module(..., package.seeall) -- Load libraries -require("posix") -require("json") -require("modelfunctions") +posix = require("posix") +json = require("json") +modelfunctions = require("modelfunctions") fs = require("acf.fs") -- Set variables -- cgit v1.2.3