summaryrefslogtreecommitdiffstats
path: root/lbu-controller.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lbu-controller.lua')
-rw-r--r--lbu-controller.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/lbu-controller.lua b/lbu-controller.lua
index 38c4d36..a5b6256 100644
--- a/lbu-controller.lua
+++ b/lbu-controller.lua
@@ -7,7 +7,7 @@ default_action = "status"
function status (self)
local cmd = self.clientdata.cmd
- local url = ENV["SCRIPT_NAME"] .. self.conf.prefix .. self.conf.controller
+ local url = self.conf.script .. self.conf.prefix .. self.conf.controller
local status, errors = self.model:getstatus()
return ( {status = status,
errors = errors,
@@ -107,7 +107,7 @@ function config (self)
end
- local url = ENV["SCRIPT_NAME"] .. self.conf.prefix .. self.conf.controller
+ local url = self.conf.script .. self.conf.prefix .. self.conf.controller
return ( {status = status,
cmdresult = cmdresult,
errors = errors,
@@ -118,7 +118,7 @@ end
function commit(self)
local cmdresult, cmderror
- local url = ENV["SCRIPT_NAME"] .. self.conf.prefix .. self.conf.controller
+ local url = self.conf.script .. self.conf.prefix .. self.conf.controller
local cmdflag = nil
if (self.clientdata.lbucleanmedia) then cmdflag = "-d" else cmdflag = "" end
if (self.clientdata.lbusimulate) then
@@ -185,7 +185,7 @@ function expert (self)
file.cmdsave.descr="* Changes has been saved!"
end
- local url = ENV["SCRIPT_NAME"] .. self.conf.prefix .. self.conf.controller
+ local url = self.conf.script .. self.conf.prefix .. self.conf.controller
return {
file = file,