summaryrefslogtreecommitdiffstats
path: root/logfiles-controller.lua
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2008-07-02 20:24:35 +0000
committerTed Trask <ttrask01@yahoo.com>2008-07-02 20:24:35 +0000
commit7947f17ad4ba8e0b3c41a9ace736e005c66017c2 (patch)
treeaf1b0f5d6fa2ef8a01454403592b4e4d245a15c2 /logfiles-controller.lua
parented1007285faee68e39640bf3e2c59726c37eb943 (diff)
downloadacf-alpine-baselayout-7947f17ad4ba8e0b3c41a9ace736e005c66017c2.tar.bz2
acf-alpine-baselayout-7947f17ad4ba8e0b3c41a9ace736e005c66017c2.tar.xz
Changed logfiles to use controllerfunctions and standard html-lsp files.
git-svn-id: svn://svn.alpinelinux.org/acf/alpine-baselayout/trunk@1270 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'logfiles-controller.lua')
-rw-r--r--logfiles-controller.lua16
1 files changed, 2 insertions, 14 deletions
diff --git a/logfiles-controller.lua b/logfiles-controller.lua
index 400756e..dc22115 100644
--- a/logfiles-controller.lua
+++ b/logfiles-controller.lua
@@ -9,23 +9,11 @@ status = function (self )
end
delete = function (self)
- local filetodelete = self.clientdata.name or ""
- local deletestatus = self.model.delete(filetodelete)
- if (deletestatus.errtxt) then
- return deletestatus
- else
- redirect(self)
- end
+ return self:redirect_to_referrer(self.model.delete(self.clientdata.name or ""))
end
view = function (self)
- local filetoview = self.clientdata.name or ""
- local content = self.model.get_filedetails(filetoview)
- if (filetoview ~= "") and content then
- return content
- else
- redirect(self)
- end
+ return self.model.get_filedetails(self.clientdata.name or "")
end
download = function (self)