From fcaab1b363fcd5ff2dccce8f98cacabc5635ba5f Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Wed, 9 Oct 2013 19:24:30 +0000 Subject: Change use of require to work with Lua 5.2 --- app/acf_www-controller.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/acf_www-controller.lua') 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 -- cgit v1.2.3