From e15dcf488f8bbf1fef2cd0a7001385f7a95e8d59 Mon Sep 17 00:00:00 2001 From: Frédéric Buclin Date: Wed, 17 Aug 2011 00:45:22 +0200 Subject: Bug 678970: Use $user and $cgi instead of Bugzilla->user and Bugzilla->cgi r=timello a=LpSolit --- showdependencygraph.cgi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'showdependencygraph.cgi') diff --git a/showdependencygraph.cgi b/showdependencygraph.cgi index 0726760b9..676a3462f 100755 --- a/showdependencygraph.cgi +++ b/showdependencygraph.cgi @@ -35,7 +35,7 @@ use Bugzilla::Error; use Bugzilla::Bug; use Bugzilla::Status; -Bugzilla->login(); +my $user = Bugzilla->login(); my $cgi = Bugzilla->cgi; my $template = Bugzilla->template; @@ -189,7 +189,7 @@ foreach my $k (keys(%seen)) { my ($stat, $resolution, $summary) = $dbh->selectrow_array($sth, undef, $k); # Resolution and summary are shown only if user can see the bug - if (!Bugzilla->user->can_see_bug($k)) { + if (!$user->can_see_bug($k)) { $resolution = $summary = ''; } -- cgit v1.2.3-24-g4f1b