summaryrefslogtreecommitdiffstats
path: root/reports.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'reports.cgi')
-rwxr-xr-xreports.cgi4
1 files changed, 3 insertions, 1 deletions
diff --git a/reports.cgi b/reports.cgi
index 71ecf6c31..67274a6d5 100755
--- a/reports.cgi
+++ b/reports.cgi
@@ -37,6 +37,8 @@ use strict;
use lib qw(.);
+use Bugzilla::Config qw(:DEFAULT $datadir);
+
require "CGI.pl";
use vars qw(%FORM); # globals from CGI.pl
@@ -48,7 +50,7 @@ $@ && ThrowCodeError("gd_not_installed");
eval "use Chart::Lines";
$@ && ThrowCodeError("chart_lines_not_installed");
-my $dir = "data/mining";
+my $dir = "$datadir/mining";
my $graph_dir = "graphs";
use Bugzilla;