summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2013-10-09 20:38:52 +0000
committerTed Trask <ttrask01@yahoo.com>2013-10-09 20:38:52 +0000
commitcf4797b1b2dc539841ae5403575e7c010ad855e6 (patch)
tree8798f11e87ec16b3ec625c9cb685c990e6f69cc4
parent135968fdb16dbc9d361a8de7ac6d23db2e77caaa (diff)
downloadacf-clamav-cf4797b1b2dc539841ae5403575e7c010ad855e6.tar.bz2
acf-clamav-cf4797b1b2dc539841ae5403575e7c010ad855e6.tar.xz
Change use of require to work with Lua 5.2
-rw-r--r--clamav-details-html.lsp2
-rw-r--r--clamav-listfiles-html.lsp2
-rw-r--r--clamav-model.lua2
3 files changed, 3 insertions, 3 deletions
diff --git a/clamav-details-html.lsp b/clamav-details-html.lsp
index 905a057..778a3bf 100644
--- a/clamav-details-html.lsp
+++ b/clamav-details-html.lsp
@@ -1,5 +1,5 @@
<% local data, viewlibrary = ...
-require("htmlviewfunctions")
+htmlviewfunctions = require("htmlviewfunctions")
html = require("acf.html")
%>
diff --git a/clamav-listfiles-html.lsp b/clamav-listfiles-html.lsp
index 0d2e49f..e2da86b 100644
--- a/clamav-listfiles-html.lsp
+++ b/clamav-listfiles-html.lsp
@@ -1,5 +1,5 @@
<% local data, viewlibrary, page_info, session = ...
-require("htmlviewfunctions")
+htmlviewfunctions = require("htmlviewfunctions")
html = require("acf.html")
%>
diff --git a/clamav-model.lua b/clamav-model.lua
index e42a76e..d83484d 100644
--- a/clamav-model.lua
+++ b/clamav-model.lua
@@ -1,7 +1,7 @@
module(..., package.seeall)
-- Load libraries
-require("modelfunctions")
+modelfunctions = require("modelfunctions")
fs = require("acf.fs")
format = require("acf.format")