From 1d8f30e830ea4417e34c895d277f2d05b7a6f26d Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Wed, 9 Oct 2013 20:46:57 +0000 Subject: Change use of require to work with Lua 5.2 --- fetchmail-config-html.lsp | 2 +- fetchmail-listentries-html.lsp | 2 +- fetchmail-model.lua | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/fetchmail-config-html.lsp b/fetchmail-config-html.lsp index e3df87e..fc725c7 100644 --- a/fetchmail-config-html.lsp +++ b/fetchmail-config-html.lsp @@ -1,5 +1,5 @@ <% local view, viewlibrary, page_info, session = ... %> -<% require("htmlviewfunctions") %> +<% htmlviewfunctions = require("htmlviewfunctions") %> <% html = require("acf.html") %> <% htmlviewfunctions.displaycommandresults({"editconfig", "editentry", "deleteentry", "createentry"}, session) %> diff --git a/fetchmail-listentries-html.lsp b/fetchmail-listentries-html.lsp index d44c9d2..b19f2ca 100644 --- a/fetchmail-listentries-html.lsp +++ b/fetchmail-listentries-html.lsp @@ -1,5 +1,5 @@ <% local data, viewlibrary, page_info, session = ... -require("htmlviewfunctions") +htmlviewfunctions = require("htmlviewfunctions") html = require("acf.html") %> diff --git a/fetchmail-model.lua b/fetchmail-model.lua index bfe07b9..ba896c9 100644 --- a/fetchmail-model.lua +++ b/fetchmail-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