From 0fccdb26ae49bd8bb6022d48b769595e0a328278 Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" <> Date: Tue, 19 Sep 2006 05:16:43 +0000 Subject: Bug 352235: Use Bugzilla->localconfig everywhere instead of :localconfig from Bugzilla::Config Patch By Max Kanat-Alexander r=LpSolit, a=myk --- Bugzilla/Config.pm | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'Bugzilla/Config.pm') diff --git a/Bugzilla/Config.pm b/Bugzilla/Config.pm index 7db033285..1423c1196 100644 --- a/Bugzilla/Config.pm +++ b/Bugzilla/Config.pm @@ -43,18 +43,13 @@ use File::Temp; %Bugzilla::Config::EXPORT_TAGS = ( admin => [qw(update_params SetParam write_params)], - db => [qw($db_driver $db_host $db_port $db_name $db_user $db_pass $db_sock - $db_check)], - localconfig => [qw($cvsbin $interdiffbin $diffpath $webservergroup)], ); -Exporter::export_ok_tags('admin', 'db', 'localconfig'); +Exporter::export_ok_tags('admin'); use vars qw(@param_list); # INITIALISATION CODE # Perl throws a warning if we use bz_locations() directly after do. -our $localconfig = bz_locations()->{'localconfig'}; -do $localconfig; our %params; # Load in the param definitions sub _load_params { @@ -327,10 +322,6 @@ Bugzilla::Config - Configuration parameters for Bugzilla SetParam($param, $value); write_params(); - # Localconfig variables may also be imported - use Bugzilla::Config qw(:db); - print "Connecting to $db_name as $db_user with $db_pass\n"; - =head1 DESCRIPTION This package contains ways to access Bugzilla configuration parameters. -- cgit v1.2.3-24-g4f1b