From c30cf5bb3eb1149ea43ae6018fae22164d6cd010 Mon Sep 17 00:00:00 2001 From: "gerv%gerv.net" <> Date: Sat, 27 Jul 2002 03:49:02 +0000 Subject: Bug 158658 - relogin.cgi should use a template. This also adds the ability to localise messages. Patch by gerv; r=burnus. --- relogin.cgi | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) (limited to 'relogin.cgi') diff --git a/relogin.cgi b/relogin.cgi index d3023c850..3bab9fdc5 100755 --- a/relogin.cgi +++ b/relogin.cgi @@ -57,18 +57,12 @@ Set-Cookie: Bugzilla_logincookie= ; path=$cookiepath; expires=Sun, 30-Jun-80 00: delete $::COOKIE{"Bugzilla_login"}; - $vars->{'title'} = "Logged Out"; - $vars->{'message'} = "Your login has been forgotten. - The cookie that was remembering your login is - now gone. You will be prompted for a login the - next time it is required."; - $vars->{'url'} = "query.cgi?GoAheadAndLogIn=1"; - $vars->{'link'} = "Log in again here"; - $vars->{'user'} = {}; - - print "Content-Type: text/html\n\n"; - $template->process("global/message.html.tmpl", $vars) - || ThrowTemplateError($template->error()); +$vars->{'message'} = "logged_out"; +$vars->{'user'} = {}; + +print "Content-Type: text/html\n\n"; +$template->process("global/message.html.tmpl", $vars) + || ThrowTemplateError($template->error()); exit; -- cgit v1.2.3-24-g4f1b