diff options
author | lpsolit%gmail.com <> | 2006-06-21 07:44:46 +0000 |
---|---|---|
committer | lpsolit%gmail.com <> | 2006-06-21 07:44:46 +0000 |
commit | c41117346f48774e5c6731303702b5ce98db517b (patch) | |
tree | 96cd49de1876e195d8df5760a5519563db41ae24 /showdependencygraph.cgi | |
parent | Patch for bug 342130: don't display a bogus footer anymore when searching for... (diff) | |
download | bugzilla-c41117346f48774e5c6731303702b5ce98db517b.tar.gz bugzilla-c41117346f48774e5c6731303702b5ce98db517b.tar.bz2 bugzilla-c41117346f48774e5c6731303702b5ce98db517b.zip |
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-x | showdependencygraph.cgi | 8 |
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"); |