summaryrefslogtreecommitdiffstats
path: root/app/acf_www-controller.lua
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2013-10-09 19:24:30 +0000
committerTed Trask <ttrask01@yahoo.com>2013-10-09 19:24:30 +0000
commitfcaab1b363fcd5ff2dccce8f98cacabc5635ba5f (patch)
treecd28bbb1bc80b0a36de234768fd6f3b75b8fcc9c /app/acf_www-controller.lua
parente07736354b22bef2599d1831a6ba435808c0630d (diff)
downloadacf-core-fcaab1b363fcd5ff2dccce8f98cacabc5635ba5f.tar.bz2
acf-core-fcaab1b363fcd5ff2dccce8f98cacabc5635ba5f.tar.xz
Change use of require to work with Lua 5.2
Diffstat (limited to 'app/acf_www-controller.lua')
-rw-r--r--app/acf_www-controller.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/acf_www-controller.lua b/app/acf_www-controller.lua
index 4aa5b44..0391347 100644
--- a/app/acf_www-controller.lua
+++ b/app/acf_www-controller.lua
@@ -9,7 +9,7 @@ module(..., package.seeall)
-- This is not in the global namespace, but future
-- require statements shouldn't need to go to the disk lib
-require "posix"
+posix = require("posix")
-- We use the parent exception handler in a last-case situation
local parent_exception_handler
@@ -268,7 +268,7 @@ mvc.on_load = function (self, parent)
end
self.sessiondata = {}
self.sessiondata.id = sessionlib.random_hash(512)
- require("authenticator")
+ authenticator = require("authenticator")
self.sessiondata.userinfo = authenticator.get_userinfo(self, ENV.REMOTE_USER)
logevent("Automatic logon as ENV.REMOTE_USER: "..tostring(ENV.REMOTE_USER))
end