Commit 6e7e6c4b authored by Ted Trask's avatar Ted Trask

Change use of require to work with Lua 5.2

parent 8721aec3
<% local form, viewlibrary, page_info = ...
require("htmlviewfunctions")
htmlviewfunctions = require("htmlviewfunctions")
html = require("acf.html")
%>
......
<% local view, viewlibrary, page_info, session = ...
require("htmlviewfunctions")
htmlviewfunctions = require("htmlviewfunctions")
html = require("acf.html")
%>
......
<% local data, viewlibrary, page_info, session = ...
require("htmlviewfunctions")
htmlviewfunctions = require("htmlviewfunctions")
html = require("acf.html")
%>
......
module(..., package.seeall)
-- Load libraries
require("modelfunctions")
modelfunctions = require("modelfunctions")
fs = require("acf.fs")
format = require("acf.format")
validator = require("acf.validator")
require("luasql.postgres")
require("posix")
require("subprocess")
luasql = require("luasql.postgres")
posix = require("posix")
subprocess = require("subprocess")
local DatabaseName = "webproxylog"
local DatabaseOwner = "weblogowner"
......
<% local data, viewlibrary, page_info, session = ...
require("htmlviewfunctions")
htmlviewfunctions = require("htmlviewfunctions")
%>
<% htmlviewfunctions.displaycommandresults({"createdatabase"}, session, true) %>
......
<% local data, viewlibrary, page_info, session = ... %>
<% require("htmlviewfunctions") %>
<% htmlviewfunctions = require("htmlviewfunctions") %>
<% html = require("acf.html") %>
<% local subdata, pagedata = htmlviewfunctions.paginate(data.value, page_info.clientdata, 100) %>
......
<% local data, viewlibrary, page_info, session = ... %>
<% require("htmlviewfunctions") %>
<% htmlviewfunctions = require("htmlviewfunctions") %>
<% html = require("acf.html") %>
<script type="text/javascript">
......
<% local data, viewlibrary, page_info, session = ... %>
<% require("htmlviewfunctions") %>
<% htmlviewfunctions = require("htmlviewfunctions") %>
<% html = require("acf.html") %>
<% local subdata, pagedata = htmlviewfunctions.paginate(data.value, page_info.clientdata, 100) %>
......
<% local data, viewlibrary, page_info, session = ... %>
<% require("htmlviewfunctions") %>
<% htmlviewfunctions = require("htmlviewfunctions") %>
<% html = require("acf.html") %>
<% format = require("acf.format") %>
......
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