diff options
author | Ted Trask <ttrask01@yahoo.com> | 2013-10-09 20:20:17 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2013-10-09 20:20:17 +0000 |
commit | 65d76efca6fdc54b449ea396d70faae4d990b05a (patch) | |
tree | 6689f8ff855f6eb858b5fc34483ea396513c61e0 /lbu-model.lua | |
parent | 2a8918a9e123d77c489a4f3df035f5d6d309498c (diff) | |
download | acf-alpine-conf-65d76efca6fdc54b449ea396d70faae4d990b05a.tar.bz2 acf-alpine-conf-65d76efca6fdc54b449ea396d70faae4d990b05a.tar.xz |
Change use of require to work with Lua 5.2
Diffstat (limited to 'lbu-model.lua')
-rw-r--r-- | lbu-model.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lbu-model.lua b/lbu-model.lua index f6c9d2a..7c58b01 100644 --- a/lbu-model.lua +++ b/lbu-model.lua @@ -1,8 +1,8 @@ module (..., package.seeall) -- Load libraries -require("posix") -require("modelfunctions") +posix = require("posix") +modelfunctions = require("modelfunctions") fs = require("acf.fs") format = require("acf.format") validator = require("acf.validator") @@ -388,7 +388,7 @@ end function getpackage() -- create a temporary directory to store the file - require("session") + session = require("session") local tmp = "/tmp/"..session.random_hash(10) while posix.stat( tmp ) do tmp = "/tmp/"..session.random_hash(10) |