From c41117346f48774e5c6731303702b5ce98db517b Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Wed, 21 Jun 2006 07:44:46 +0000 Subject: Bug 282121: Remove globals.pl from scripts that no longer use it - Patch by Frédéric Buclin r=mkanat a=myk MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- duplicates.cgi | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'duplicates.cgi') diff --git a/duplicates.cgi b/duplicates.cgi index 5264e1e14..6b839165b 100755 --- a/duplicates.cgi +++ b/duplicates.cgi @@ -29,12 +29,12 @@ use AnyDBM_File; use lib qw(.); -require "globals.pl"; - use Bugzilla; -use Bugzilla::Search; -use Bugzilla::Config qw(:DEFAULT $datadir); use Bugzilla::Constants; +use Bugzilla::Config qw(:DEFAULT); +use Bugzilla::Util; +use Bugzilla::Error; +use Bugzilla::Search; use Bugzilla::Product; my $cgi = Bugzilla->cgi; @@ -106,6 +106,8 @@ my $yesterday = days_ago(1); use Errno; use Fcntl; +my $datadir = bz_locations()->{'datadir'}; + if (!tie(%dbmcount, 'AnyDBM_File', "$datadir/duplicates/dupes$today", O_RDONLY, 0644)) { if ($!{ENOENT}) { -- cgit v1.2.3-24-g4f1b