summaryrefslogtreecommitdiffstats
path: root/relogin.cgi
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2005-08-10 10:30:39 +0200
committerlpsolit%gmail.com <>2005-08-10 10:30:39 +0200
commit8d06d1ef539f3f8becc56953b040bc710ec9a859 (patch)
treeec55649c78ed3ccfcb79257b3269d30c2703cb8d /relogin.cgi
parent67b67a2e824b5120c3d8d06948927b5372ea98a6 (diff)
downloadbugzilla-8d06d1ef539f3f8becc56953b040bc710ec9a859.tar.gz
bugzilla-8d06d1ef539f3f8becc56953b040bc710ec9a859.tar.xz
Bug 301508: Remove CGI.pl - Patch by Frédéric Buclin <LpSolit@gmail.com> r=mkanat,wicked a=justdave
Diffstat (limited to 'relogin.cgi')
-rwxr-xr-xrelogin.cgi8
1 files changed, 4 insertions, 4 deletions
diff --git a/relogin.cgi b/relogin.cgi
index 6843405c2..f743eb8f3 100755
--- a/relogin.cgi
+++ b/relogin.cgi
@@ -23,11 +23,9 @@
use strict;
-use vars qw($template $vars);
-
use lib qw(.);
-
-require "CGI.pl";
+use Bugzilla;
+use Bugzilla::Error;
# We don't want to remove a random logincookie from the db, so
# call Bugzilla->login(). If we're logged in after this, then
@@ -36,9 +34,11 @@ Bugzilla->login();
Bugzilla->logout();
+my $template = Bugzilla->template;
my $cgi = Bugzilla->cgi;
print $cgi->header();
+my $vars = {};
$vars->{'message'} = "logged_out";
$template->process("global/message.html.tmpl", $vars)
|| ThrowTemplateError($template->error());