From da857afa089e79ad16fb833dd1ffe397055fd892 Mon Sep 17 00:00:00 2001 From: "bbaetz%acm.org" <> Date: Sat, 22 Nov 2003 11:50:36 +0000 Subject: Bug 208604 - Make data/template dir locations configurable --- reports.cgi | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'reports.cgi') 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; -- cgit v1.2.3-24-g4f1b