aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@gmail.com>2011-08-17 00:45:22 +0200
committerFrédéric Buclin <LpSolit@gmail.com>2011-08-17 00:45:22 +0200
commite15dcf488f8bbf1fef2cd0a7001385f7a95e8d59 (patch)
tree4a46e8d94f53faf98923ca7509704f5e1fdec541 /showdependencygraph.cgi
parentBug 675603: Remove obsolete code from Bugzilla/DB/Oracle.pm (diff)
downloadbugzilla-e15dcf488f8bbf1fef2cd0a7001385f7a95e8d59.tar.gz
bugzilla-e15dcf488f8bbf1fef2cd0a7001385f7a95e8d59.tar.bz2
bugzilla-e15dcf488f8bbf1fef2cd0a7001385f7a95e8d59.zip
Bug 678970: Use $user and $cgi instead of Bugzilla->user and Bugzilla->cgi
r=timello a=LpSolit
Diffstat (limited to 'showdependencygraph.cgi')
-rwxr-xr-xshowdependencygraph.cgi4
1 files changed, 2 insertions, 2 deletions
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 = '';
}