Fix for bug 234175: Remove deprecated ConnectToDatabase() and
quietly_check_login()/confirm_login() calls. Cleans up callsites (consisting of most of our CGIs), swapping (where appropriate) for calls to Bugzilla->login. Patch by Teemu Mannermaa <wicked@etlicon.fi>. r=bbaetz, kiko. a=justdave. git-svn-id: svn://10.0.0.236/trunk@154331 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -31,9 +31,6 @@ use strict;
|
||||
use lib qw(.);
|
||||
require "CGI.pl";
|
||||
|
||||
# Establish a connection to the database backend.
|
||||
ConnectToDatabase();
|
||||
|
||||
# Use Bugzilla's Request module which contains utilities for handling requests.
|
||||
use Bugzilla::Flag;
|
||||
use Bugzilla::FlagType;
|
||||
@@ -44,7 +41,7 @@ use Bugzilla::User;
|
||||
use vars qw($template $vars @legal_product @legal_components %components);
|
||||
|
||||
# Make sure the user is logged in.
|
||||
quietly_check_login();
|
||||
Bugzilla->login();
|
||||
|
||||
################################################################################
|
||||
# Main Body Execution
|
||||
|
||||
Reference in New Issue
Block a user