From c41117346f48774e5c6731303702b5ce98db517b Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Wed, 21 Jun 2006 07:44:46 +0000 Subject: Bug 282121: Remove globals.pl from scripts that no longer use it - Patch by Frédéric Buclin r=mkanat a=myk MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- showdependencygraph.cgi | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'showdependencygraph.cgi') 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"); -- cgit v1.2.3-24-g4f1b