From c41117346f48774e5c6731303702b5ce98db517b Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Wed, 21 Jun 2006 07:44:46 +0000 Subject: =?UTF-8?q?Bug=20282121:=20Remove=20globals.pl=20from=20scripts=20?= =?UTF-8?q?that=20no=20longer=20use=20it=20-=20Patch=20by=20Fr=C3=A9d?= =?UTF-8?q?=C3=A9ric=20Buclin=20=20r=3Dmkanat=20a=3Dmyk?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- reports.cgi | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'reports.cgi') diff --git a/reports.cgi b/reports.cgi index 5b043c934..09b8dc30e 100755 --- a/reports.cgi +++ b/reports.cgi @@ -37,20 +37,20 @@ use strict; use lib qw(.); -use Bugzilla::Config qw(:DEFAULT $datadir); - -require "globals.pl"; +use Bugzilla; +use Bugzilla::Constants; +use Bugzilla::Config qw(:DEFAULT); +use Bugzilla::Util; +use Bugzilla::Error; eval "use GD"; $@ && ThrowCodeError("gd_not_installed"); eval "use Chart::Lines"; $@ && ThrowCodeError("chart_lines_not_installed"); -my $dir = "$datadir/mining"; +my $dir = bz_locations()->{'datadir'} . "/mining"; my $graph_dir = "graphs"; -use Bugzilla; - # If we're using bug groups for products, we should apply those restrictions # to viewing reports, as well. Time to check the login in that case. my $user = Bugzilla->login(); -- cgit v1.2.1