summaryrefslogtreecommitdiffstats
path: root/showdependencygraph.cgi
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2006-06-21 09:44:46 +0200
committerlpsolit%gmail.com <>2006-06-21 09:44:46 +0200
commitc41117346f48774e5c6731303702b5ce98db517b (patch)
tree96cd49de1876e195d8df5760a5519563db41ae24 /showdependencygraph.cgi
parente6f88531bd8d4b4d1e36ed078272dac521fcc6e9 (diff)
downloadbugzilla-c41117346f48774e5c6731303702b5ce98db517b.tar.gz
bugzilla-c41117346f48774e5c6731303702b5ce98db517b.tar.xz
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 'showdependencygraph.cgi')
-rwxr-xr-xshowdependencygraph.cgi8
1 files changed, 5 insertions, 3 deletions
diff --git a/showdependencygraph.cgi b/showdependencygraph.cgi
index ed87b6d90..e11c73ba3 100755
--- a/showdependencygraph.cgi
+++ b/showdependencygraph.cgi
@@ -26,13 +26,14 @@ use strict;
use lib qw(.);
use File::Temp;
+
use Bugzilla;
-use Bugzilla::Config qw(:DEFAULT $webdotdir);
+use Bugzilla::Constants;
+use Bugzilla::Config qw(:DEFAULT);
use Bugzilla::Util;
+use Bugzilla::Error;
use Bugzilla::Bug;
-require "globals.pl";
-
Bugzilla->login();
my $cgi = Bugzilla->cgi;
@@ -100,6 +101,7 @@ sub AddLink {
}
my $rankdir = $cgi->param('rankdir') || "LR";
+my $webdotdir = bz_locations()->{'webdotdir'};
if (!defined $cgi->param('id') && !defined $cgi->param('doall')) {
ThrowCodeError("missing_bug_id");