From c07bcb228f39b86e4b886f044c41cd05aa249b9f Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Wed, 9 Oct 2013 21:15:33 +0000 Subject: Change use of require to work with Lua 5.2 --- tcpproxy-listsmtpentries-html.lsp | 2 +- tcpproxy-listsmtpfiles-html.lsp | 2 +- tcpproxy-model.lua | 4 ++-- tcpproxy-smtpstatus-html.lsp | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tcpproxy-listsmtpentries-html.lsp b/tcpproxy-listsmtpentries-html.lsp index b1edcb9..6fffd1b 100644 --- a/tcpproxy-listsmtpentries-html.lsp +++ b/tcpproxy-listsmtpentries-html.lsp @@ -1,5 +1,5 @@ <% local view, viewlibrary, page_info, session = ... -require("htmlviewfunctions") +htmlviewfunctions = require("htmlviewfunctions") html = require("acf.html") %> diff --git a/tcpproxy-listsmtpfiles-html.lsp b/tcpproxy-listsmtpfiles-html.lsp index 0e58703..8918a7e 100644 --- a/tcpproxy-listsmtpfiles-html.lsp +++ b/tcpproxy-listsmtpfiles-html.lsp @@ -1,5 +1,5 @@ <% local view, viewlibrary, page_info, session = ... -require("htmlviewfunctions") +htmlviewfunctions = require("htmlviewfunctions") html = require("acf.html") %> diff --git a/tcpproxy-model.lua b/tcpproxy-model.lua index 3d05062..9f6f8a5 100644 --- a/tcpproxy-model.lua +++ b/tcpproxy-model.lua @@ -1,10 +1,10 @@ module(..., package.seeall) -- Load libraries -require("modelfunctions") +modelfunctions = require("modelfunctions") validator = require("acf.validator") fs = require("acf.fs") -require("posix") +posix = require("posix") format = require("acf.format") processinfo = require("acf.processinfo") diff --git a/tcpproxy-smtpstatus-html.lsp b/tcpproxy-smtpstatus-html.lsp index baeaf2c..d5f4a46 100644 --- a/tcpproxy-smtpstatus-html.lsp +++ b/tcpproxy-smtpstatus-html.lsp @@ -1,5 +1,5 @@ <% local view, viewlibrary, page_info, session = ... -require("htmlviewfunctions") +htmlviewfunctions = require("htmlviewfunctions") html = require("acf.html") %> -- cgit v1.2.3