diff options
author | Frédéric Buclin <LpSolit@gmail.com> | 2011-08-17 00:45:22 +0200 |
---|---|---|
committer | Frédéric Buclin <LpSolit@gmail.com> | 2011-08-17 00:45:22 +0200 |
commit | e15dcf488f8bbf1fef2cd0a7001385f7a95e8d59 (patch) | |
tree | 4a46e8d94f53faf98923ca7509704f5e1fdec541 /describekeywords.cgi | |
parent | Bug 675603: Remove obsolete code from Bugzilla/DB/Oracle.pm (diff) | |
download | bugzilla-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 'describekeywords.cgi')
-rwxr-xr-x | describekeywords.cgi | 6 |
1 files changed, 3 insertions, 3 deletions
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()); |