summaryrefslogtreecommitdiffstats
path: root/skins-controller.lua
diff options
context:
space:
mode:
Diffstat (limited to 'skins-controller.lua')
-rw-r--r--skins-controller.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/skins-controller.lua b/skins-controller.lua
index 9becde9..a07d141 100644
--- a/skins-controller.lua
+++ b/skins-controller.lua
@@ -5,13 +5,13 @@ module (..., package.seeall)
default_action = "read"
read = function (self )
- return ({skin = self.model:get(), url = ENV["SCRIPT_NAME"] .. self.conf.prefix .. self.conf.controller} )
+ return ({skin = self.model:get(), url = self.conf.script .. self.conf.prefix .. self.conf.controller} )
end
update = function (self )
local newskin = self.clientdata.skin or ""
local updated = self.model:update(newskin)
redirect(self)
--- return ({skin = self.model:get(), updated=self.model:update(newskin), url = ENV["SCRIPT_NAME"] .. self.conf.prefix .. self.conf.controller} )
+-- return ({skin = self.model:get(), updated=self.model:update(newskin), url = self.conf.script .. self.conf.prefix .. self.conf.controller} )
end