summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2013-10-09 21:12:35 +0000
committerTed Trask <ttrask01@yahoo.com>2013-10-09 21:12:35 +0000
commit8a157ca38f288371760542d2bcf7b5ca5b54f75b (patch)
tree7892a5a548c604841874096627c04ec79928fe21
parent3ab643b06202078e52e6e14db61f34b46438a277 (diff)
downloadacf-samba-8a157ca38f288371760542d2bcf7b5ca5b54f75b.tar.bz2
acf-samba-8a157ca38f288371760542d2bcf7b5ca5b54f75b.tar.xz
Change use of require to work with Lua 5.2
-rw-r--r--samba-listfiles-html.lsp2
-rw-r--r--samba-listshares-html.lsp2
-rw-r--r--samba-model.lua4
3 files changed, 4 insertions, 4 deletions
diff --git a/samba-listfiles-html.lsp b/samba-listfiles-html.lsp
index 2458ea7..b6460e8 100644
--- a/samba-listfiles-html.lsp
+++ b/samba-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/samba-listshares-html.lsp b/samba-listshares-html.lsp
index 80707a8..46a1678 100644
--- a/samba-listshares-html.lsp
+++ b/samba-listshares-html.lsp
@@ -1,5 +1,5 @@
<% local view, viewlibrary, page_info, session = ...
-require("htmlviewfunctions")
+htmlviewfunctions = require("htmlviewfunctions")
html = require("acf.html")
%>
diff --git a/samba-model.lua b/samba-model.lua
index 086b818..2b62e5c 100644
--- a/samba-model.lua
+++ b/samba-model.lua
@@ -1,10 +1,10 @@
module(..., package.seeall)
-- Load libraries
-require("modelfunctions")
+modelfunctions = require("modelfunctions")
validator = require("acf.validator")
fs = require("acf.fs")
-require("posix")
+posix = require("posix")
format = require("acf.format")
-- Set variables