Commit aa72624b authored by Ted Trask's avatar Ted Trask

Change use of require to work with Lua 5.2

parent be92a4d4
<% local data, viewlibrary, page_info = ...
--require("htmlviewfunctions")
--htmlviewfunctions = require("htmlviewfunctions")
html = require("acf.html")
%>
......
<% local data, viewlibrary, page_info, session = ... %>
<% require("htmlviewfunctions") %>
<% htmlviewfunctions = require("htmlviewfunctions") %>
<% htmlviewfunctions.displaycommandresults({"editracoon", "editipsec"}, session, true) %>
......
<% local view, viewlibrary, page_info, session = ... %>
<% require("htmlviewfunctions") %>
<% htmlviewfunctions = require("htmlviewfunctions") %>
<% html = require("acf.html") %>
<% htmlviewfunctions.displaycommandresults({"deletecert"}, session) %>
......
module(..., package.seeall)
-- Load libraries
require("posix")
require("modelfunctions")
posix = require("posix")
modelfunctions = require("modelfunctions")
fs = require("acf.fs")
format = require("acf.format")
validator = require("acf.validator")
......
<% local form, viewlibrary, page_info = ... %>
<% require("htmlviewfunctions") %>
<% htmlviewfunctions = require("htmlviewfunctions") %>
<% html = require("acf.html") %>
<H1><%= html.html_escape(form.label) %></H1>
......
<% local view, viewlibrary, page_info, session = ... %>
<% require("htmlviewfunctions") %>
<% htmlviewfunctions = require("htmlviewfunctions") %>
<% html = require("acf.html") %>
<% if view.value.result then %>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment