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 --- show_bug.cgi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'show_bug.cgi') diff --git a/show_bug.cgi b/show_bug.cgi index 7ea55e732..f38764b21 100755 --- a/show_bug.cgi +++ b/show_bug.cgi @@ -43,7 +43,7 @@ my $single = !$cgi->param('format') # If we don't have an ID, _AND_ we're only doing a single bug, then prompt if (!$cgi->param('id') && $single) { - print Bugzilla->cgi->header(); + print $cgi->header(); $template->process("bug/choose.html.tmpl", $vars) || ThrowTemplateError($template->error()); exit; @@ -111,7 +111,7 @@ if ($cgi->param("field")) { @fieldlist = $cgi->param("field"); } -unless (Bugzilla->user->is_timetracker) { +unless ($user->is_timetracker) { @fieldlist = grep($_ !~ /(^deadline|_time)$/, @fieldlist); } -- cgit v1.2.3-24-g4f1b