diff options
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"); |