aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2005-08-10 08:30:39 +0000
committerlpsolit%gmail.com <>2005-08-10 08:30:39 +0000
commit8d06d1ef539f3f8becc56953b040bc710ec9a859 (patch)
treeec55649c78ed3ccfcb79257b3269d30c2703cb8d /relogin.cgi
parentBug 303482: Change checksetup.pl to check for MIME::Parser instead of MIME::T... (diff)
downloadbugzilla-8d06d1ef539f3f8becc56953b040bc710ec9a859.tar.gz
bugzilla-8d06d1ef539f3f8becc56953b040bc710ec9a859.tar.bz2
bugzilla-8d06d1ef539f3f8becc56953b040bc710ec9a859.zip
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());