aboutsummaryrefslogtreecommitdiffstats
path: root/reports.cgi
diff options
context:
space:
mode:
authorbbaetz%acm.org <>2003-11-22 11:50:36 +0000
committerbbaetz%acm.org <>2003-11-22 11:50:36 +0000
commitda857afa089e79ad16fb833dd1ffe397055fd892 (patch)
tree4582f630aa59c35fdb25aa30fd71c617977e0a86 /reports.cgi
parent63790559f094b702688365ed12242526ce3ff969 (diff)
downloadbugs-da857afa089e79ad16fb833dd1ffe397055fd892.tar
bugs-da857afa089e79ad16fb833dd1ffe397055fd892.tar.gz
bugs-da857afa089e79ad16fb833dd1ffe397055fd892.tar.bz2
bugs-da857afa089e79ad16fb833dd1ffe397055fd892.tar.xz
bugs-da857afa089e79ad16fb833dd1ffe397055fd892.zip
Bug 208604 - Make data/template dir locations configurable
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;