summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2006-06-21 07:44:46 +0000
committerlpsolit%gmail.com <>2006-06-21 07:44:46 +0000
commitc41117346f48774e5c6731303702b5ce98db517b (patch)
tree96cd49de1876e195d8df5760a5519563db41ae24 /token.cgi
parentPatch for bug 342130: don't display a bogus footer anymore when searching for... (diff)
downloadbugzilla-c41117346f48774e5c6731303702b5ce98db517b.tar.gz
bugzilla-c41117346f48774e5c6731303702b5ce98db517b.tar.bz2
bugzilla-c41117346f48774e5c6731303702b5ce98db517b.zip
Bug 282121: Remove globals.pl from scripts that no longer use it - Patch by Frédéric Buclin <LpSolit@gmail.com> r=mkanat a=myk
Diffstat (limited to 'token.cgi')
-rwxr-xr-xtoken.cgi12
1 files changed, 3 insertions, 9 deletions
diff --git a/token.cgi b/token.cgi
index 061dc1e95..dcde8c108 100755
--- a/token.cgi
+++ b/token.cgi
@@ -32,23 +32,17 @@ use lib qw(.);
use Bugzilla;
use Bugzilla::Constants;
use Bugzilla::Util;
+use Bugzilla::Error;
+use Bugzilla::Token;
+use Bugzilla::User;
my $cgi = Bugzilla->cgi;
my $dbh = Bugzilla->dbh;
my $template = Bugzilla->template;
my $vars = {};
-# Include the Bugzilla CGI and general utility library.
-require "globals.pl";
-
Bugzilla->login(LOGIN_OPTIONAL);
-# Use the "Bugzilla::Token" module that contains functions for doing various
-# token-related tasks.
-use Bugzilla::Token;
-
-use Bugzilla::User;
-
################################################################################
# Data Validation / Security Authorization
################################################################################