summaryrefslogtreecommitdiffstats
path: root/lbu-model.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lbu-model.lua')
-rw-r--r--lbu-model.lua6
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)