From 115b99fc436af8e5fe342c97c08755ee175105d4 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Wed, 9 Oct 2013 21:03:54 +0000 Subject: Change use of require to work with Lua 5.2 --- postfix-details-html.lsp | 2 +- postfix-listfiles-html.lsp | 2 +- postfix-listqueue-html.lsp | 2 +- postfix-model.lua | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/postfix-details-html.lsp b/postfix-details-html.lsp index 905a057..778a3bf 100644 --- a/postfix-details-html.lsp +++ b/postfix-details-html.lsp @@ -1,5 +1,5 @@ <% local data, viewlibrary = ... -require("htmlviewfunctions") +htmlviewfunctions = require("htmlviewfunctions") html = require("acf.html") %> diff --git a/postfix-listfiles-html.lsp b/postfix-listfiles-html.lsp index f1d8671..8127202 100644 --- a/postfix-listfiles-html.lsp +++ b/postfix-listfiles-html.lsp @@ -1,5 +1,5 @@ <% local data, viewlibrary, page_info, session = ... -require("htmlviewfunctions") +htmlviewfunctions = require("htmlviewfunctions") html = require("acf.html") %> diff --git a/postfix-listqueue-html.lsp b/postfix-listqueue-html.lsp index 4ea9011..6e09ee0 100644 --- a/postfix-listqueue-html.lsp +++ b/postfix-listqueue-html.lsp @@ -1,5 +1,5 @@ <% local data, viewlibrary, page_info, session = ... -require("htmlviewfunctions") +htmlviewfunctions = require("htmlviewfunctions") html = require("acf.html") %> diff --git a/postfix-model.lua b/postfix-model.lua index a932b05..2b01b35 100644 --- a/postfix-model.lua +++ b/postfix-model.lua @@ -1,8 +1,8 @@ module(..., package.seeall) -- Load libraries -require("modelfunctions") -require("posix") +modelfunctions = require("modelfunctions") +posix = require("posix") fs = require("acf.fs") format = require("acf.format") validator = require("acf.validator") -- cgit v1.2.3