aboutsummaryrefslogtreecommitdiffstats
path: root/reports.cgi
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2006-06-21 07:44:46 +0000
committerlpsolit%gmail.com <>2006-06-21 07:44:46 +0000
commitc41117346f48774e5c6731303702b5ce98db517b (patch)
tree96cd49de1876e195d8df5760a5519563db41ae24 /reports.cgi
parente6f88531bd8d4b4d1e36ed078272dac521fcc6e9 (diff)
downloadbugs-c41117346f48774e5c6731303702b5ce98db517b.tar
bugs-c41117346f48774e5c6731303702b5ce98db517b.tar.gz
bugs-c41117346f48774e5c6731303702b5ce98db517b.tar.bz2
bugs-c41117346f48774e5c6731303702b5ce98db517b.tar.xz
bugs-c41117346f48774e5c6731303702b5ce98db517b.zip
Bug 282121: Remove globals.pl from scripts that no longer use it - Patch by Frédéric Buclin <LpSolit@gmail.com> r=mkanat a=myk
Diffstat (limited to 'reports.cgi')
-rwxr-xr-xreports.cgi12
1 files changed, 6 insertions, 6 deletions
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();