From 82fd96bdcc5b721d8fc208fe4edba54f4dc6fdb7 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Mon, 28 Apr 2008 15:24:27 +0000 Subject: Changed error redir code to use redirect function instead git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1051 ab2d0c66-481e-0410-8bed-d214d4d58bed --- www/cgi-bin/mvc.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'www/cgi-bin/mvc.lua') diff --git a/www/cgi-bin/mvc.lua b/www/cgi-bin/mvc.lua index 3a4b530..432b591 100755 --- a/www/cgi-bin/mvc.lua +++ b/www/cgi-bin/mvc.lua @@ -231,7 +231,9 @@ end -- Cause a redirect to specified (or default) action -- We use the self.conf table because it already has prefix,controller,etc -- The actual redirection is defined in the application error handler (acf-controller) -redirect = function (self, action) +redirect = function (self, action, controller, prefix) + if prefix then self.conf.prefix = prefix end + if controller then self.conf.controller = controller end if nil == action then action = rawget(self.worker, "default_action") or "" end -- cgit v1.2.3