summaryrefslogtreecommitdiffstats
path: root/testserver.pl
diff options
context:
space:
mode:
authormkanat%bugzilla.org <>2006-09-19 07:16:43 +0200
committermkanat%bugzilla.org <>2006-09-19 07:16:43 +0200
commit0fccdb26ae49bd8bb6022d48b769595e0a328278 (patch)
tree90785472439295e8900fd46ea6a7519359d954ac /testserver.pl
parente1cdcb29f47b7c9c3ccd6d782a566e3a9b03a956 (diff)
downloadbugzilla-0fccdb26ae49bd8bb6022d48b769595e0a328278.tar.gz
bugzilla-0fccdb26ae49bd8bb6022d48b769595e0a328278.tar.xz
Bug 352235: Use Bugzilla->localconfig everywhere instead of :localconfig from Bugzilla::Config
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=myk
Diffstat (limited to 'testserver.pl')
-rwxr-xr-xtestserver.pl9
1 files changed, 2 insertions, 7 deletions
diff --git a/testserver.pl b/testserver.pl
index bf818cd0f..9c12b9573 100755
--- a/testserver.pl
+++ b/testserver.pl
@@ -21,14 +21,8 @@
use strict;
use lib ".";
-BEGIN {
- my $envpath = $ENV{'PATH'};
- require Bugzilla;
- $ENV{'PATH'} = $envpath;
-}
-
+use Bugzilla;
use Bugzilla::Constants;
-use Bugzilla::Config qw(:localconfig);
use Socket;
@@ -62,6 +56,7 @@ if ($^O !~ /MSWin32/i) {
# Determine the numeric GID of $webservergroup
my $webgroupnum = 0;
+my $webservergroup = Bugzilla->localconfig->{webservergroup};
if ($webservergroup =~ /^(\d+)$/) {
$webgroupnum = $1;
} else {