summaryrefslogtreecommitdiffstats
path: root/relogin.cgi
diff options
context:
space:
mode:
authorgerv%gerv.net <>2002-07-27 05:49:02 +0200
committergerv%gerv.net <>2002-07-27 05:49:02 +0200
commitc30cf5bb3eb1149ea43ae6018fae22164d6cd010 (patch)
treed6a1d264a3411618b943fa132d0988940d92714a /relogin.cgi
parent18b8582df8e89acc8dc7defa7b6848928327e621 (diff)
downloadbugzilla-c30cf5bb3eb1149ea43ae6018fae22164d6cd010.tar.gz
bugzilla-c30cf5bb3eb1149ea43ae6018fae22164d6cd010.tar.xz
Bug 158658 - relogin.cgi should use a template. This also adds the ability to localise messages. Patch by gerv; r=burnus.
Diffstat (limited to 'relogin.cgi')
-rwxr-xr-xrelogin.cgi18
1 files changed, 6 insertions, 12 deletions
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'} = "<b>Your login has been forgotten</b>.
- 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;