diff options
author | Ted Trask <ttrask01@yahoo.com> | 2008-04-28 15:24:27 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2008-04-28 15:24:27 +0000 |
commit | 928ebd34ee21e497347a6b71571cdae248ddfa8a (patch) | |
tree | 3c5a72ad875f1fc2c4a566cd07f8153f9f210bce | |
parent | dd872a1b92ecfe3f170e2698cebea47f547470aa (diff) | |
download | acf-gnats-928ebd34ee21e497347a6b71571cdae248ddfa8a.tar.bz2 acf-gnats-928ebd34ee21e497347a6b71571cdae248ddfa8a.tar.xz |
Changed error redir code to use redirect function instead
git-svn-id: svn://svn.alpinelinux.org/acf/gnats/trunk@1051 ab2d0c66-481e-0410-8bed-d214d4d58bed
-rw-r--r-- | gnats-controller.lua | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/gnats-controller.lua b/gnats-controller.lua index 03df468..7826c69 100644 --- a/gnats-controller.lua +++ b/gnats-controller.lua @@ -147,9 +147,7 @@ function edit(self) if not (filedetailsresult) then - self.conf.action = "status" - self.conf.type = "redir" - error (self.conf) + redirect(self, "status") end -- Add a cmd button to the view @@ -506,9 +504,7 @@ function report(self) local bugreportsuccess, bugreport = self.model:sendbug(bugreport) if (bugreportsuccess) then - self.conf.action = "reportsuccess" - self.conf.type = "redir" - error (self.conf) + redirect(self, "reportsuccess") end reportform.submit.errtxt = "Something went wrong because the report could not be sent.\n" .. bugreport end |