diff options
| author | Ted Trask <ttrask01@yahoo.com> | 2013-10-09 20:46:57 +0000 | 
|---|---|---|
| committer | Ted Trask <ttrask01@yahoo.com> | 2013-10-09 20:46:57 +0000 | 
| commit | 1d8f30e830ea4417e34c895d277f2d05b7a6f26d (patch) | |
| tree | 34277359dd300ee85b3d948dcf429b042d3967c9 | |
| parent | 8234ed21efc77facc2d757793db6122115906dd2 (diff) | |
| download | acf-fetchmail-1d8f30e830ea4417e34c895d277f2d05b7a6f26d.tar.bz2 acf-fetchmail-1d8f30e830ea4417e34c895d277f2d05b7a6f26d.tar.xz  | |
Change use of require to work with Lua 5.2
| -rw-r--r-- | fetchmail-config-html.lsp | 2 | ||||
| -rw-r--r-- | fetchmail-listentries-html.lsp | 2 | ||||
| -rw-r--r-- | 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")  | 
