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 --- describekeywords.cgi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'describekeywords.cgi') diff --git a/describekeywords.cgi b/describekeywords.cgi index 9796b77d5..ffe14032f 100755 --- a/describekeywords.cgi +++ b/describekeywords.cgi @@ -29,7 +29,7 @@ use Bugzilla::Error; use Bugzilla::User; use Bugzilla::Keyword; -Bugzilla->login(); +my $user = Bugzilla->login(); my $cgi = Bugzilla->cgi; my $template = Bugzilla->template; @@ -39,8 +39,8 @@ my $vars = {}; Bugzilla->switch_to_shadow_db; $vars->{'keywords'} = Bugzilla::Keyword->get_all_with_bug_count(); -$vars->{'caneditkeywords'} = Bugzilla->user->in_group("editkeywords"); +$vars->{'caneditkeywords'} = $user->in_group("editkeywords"); -print Bugzilla->cgi->header(); +print $cgi->header(); $template->process("reports/keywords.html.tmpl", $vars) || ThrowTemplateError($template->error()); -- cgit v1.2.3-65-gdbad