summaryrefslogtreecommitdiffstats
path: root/duplicates.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'duplicates.cgi')
-rwxr-xr-xduplicates.cgi10
1 files changed, 6 insertions, 4 deletions
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}) {