summaryrefslogtreecommitdiffstats
path: root/skins-controller.lua
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2008-06-02 19:27:56 +0000
committerTed Trask <ttrask01@yahoo.com>2008-06-02 19:27:56 +0000
commitaed2d1a213fa8366a72e65a2f56e031df4b843f4 (patch)
tree40776f5898306019c36533d25ad11c7de446f30f /skins-controller.lua
parent1ad185d3004918e3fabf86f4c752093ff369ea81 (diff)
downloadacf-alpine-baselayout-aed2d1a213fa8366a72e65a2f56e031df4b843f4.tar.bz2
acf-alpine-baselayout-aed2d1a213fa8366a72e65a2f56e031df4b843f4.tar.xz
Modified skins to use cfe's more properly.
git-svn-id: svn://svn.alpinelinux.org/acf/alpine-baselayout/trunk@1194 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'skins-controller.lua')
-rw-r--r--skins-controller.lua5
1 files changed, 2 insertions, 3 deletions
diff --git a/skins-controller.lua b/skins-controller.lua
index a07d141..ee4ff9c 100644
--- a/skins-controller.lua
+++ b/skins-controller.lua
@@ -5,13 +5,12 @@ module (..., package.seeall)
default_action = "read"
read = function (self )
- return ({skin = self.model:get(), url = self.conf.script .. self.conf.prefix .. self.conf.controller} )
+ return self.model.get()
end
update = function (self )
local newskin = self.clientdata.skin or ""
- local updated = self.model:update(newskin)
+ local updated = self.model.update(newskin)
redirect(self)
--- return ({skin = self.model:get(), updated=self.model:update(newskin), url = self.conf.script .. self.conf.prefix .. self.conf.controller} )
end