summaryrefslogtreecommitdiffstats
path: root/describekeywords.cgi
diff options
context:
space:
mode:
authorPerl Tidy <perltidy@bugzilla.org>2018-12-05 21:38:52 +0100
committerDylan William Hardison <dylan@hardison.net>2018-12-05 23:49:08 +0100
commit8ec8da0491ad89604700b3e29a227966f6d84ba1 (patch)
tree9d270f173330ca19700e0ba9f2ee931300646de1 /describekeywords.cgi
parenta7bb5a65b71644d9efce5fed783ed545b9336548 (diff)
downloadbugzilla-8ec8da0491ad89604700b3e29a227966f6d84ba1.tar.gz
bugzilla-8ec8da0491ad89604700b3e29a227966f6d84ba1.tar.xz
no bug - reformat all the code using the new perltidy rules
Diffstat (limited to 'describekeywords.cgi')
-rwxr-xr-xdescribekeywords.cgi13
1 files changed, 6 insertions, 7 deletions
diff --git a/describekeywords.cgi b/describekeywords.cgi
index f48b88b7f..1a047931d 100755
--- a/describekeywords.cgi
+++ b/describekeywords.cgi
@@ -33,9 +33,9 @@ use Bugzilla::Keyword;
Bugzilla->login();
-my $cgi = Bugzilla->cgi;
+my $cgi = Bugzilla->cgi;
my $template = Bugzilla->template;
-my $vars = {};
+my $vars = {};
# Run queries against the shadow DB.
Bugzilla->switch_to_shadow_db;
@@ -43,14 +43,13 @@ Bugzilla->switch_to_shadow_db;
# Hide bug counts for security keywords from users who aren't a member of the
# security group
my $can_see_security = Bugzilla->user->in_group('core-security-release');
-my $keywords = Bugzilla::Keyword->get_all_with_bug_count();
+my $keywords = Bugzilla::Keyword->get_all_with_bug_count();
foreach my $keyword (@$keywords) {
- $keyword->{'bug_count'} = 0
- if $keyword->name =~ /^(?:sec|csec|wsec|opsec)-/
- && !$can_see_security;
+ $keyword->{'bug_count'} = 0
+ if $keyword->name =~ /^(?:sec|csec|wsec|opsec)-/ && !$can_see_security;
}
-$vars->{'keywords'} = $keywords;
+$vars->{'keywords'} = $keywords;
$vars->{'caneditkeywords'} = Bugzilla->user->in_group("editkeywords");
print Bugzilla->cgi->header();