diff options
author | Ted Trask <ttrask01@yahoo.com> | 2008-05-15 13:51:21 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2008-05-15 13:51:21 +0000 |
commit | 7d9b0d93dd7c3dee3acd4da629b4f519eafe0f7b (patch) | |
tree | b53bc377319db5d7384416e7b25a12ae4074273e /skins-controller.lua | |
parent | 4b9f0125157633ed5b75ca7e9c4d28d85f974847 (diff) | |
download | acf-alpine-baselayout-7d9b0d93dd7c3dee3acd4da629b4f519eafe0f7b.tar.bz2 acf-alpine-baselayout-7d9b0d93dd7c3dee3acd4da629b4f519eafe0f7b.tar.xz |
Replaced references to ENV[SCRIPT_NAME] with self.conf.script.
Logon link no longer forced to be https.
git-svn-id: svn://svn.alpinelinux.org/acf/alpine-baselayout/trunk@1120 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'skins-controller.lua')
-rw-r--r-- | skins-controller.lua | 4 |
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 |