diff options
author | Vladimir Panteleev <github.private@thecybershadow.net> | 2018-04-08 05:57:06 +0200 |
---|---|---|
committer | Dylan William Hardison <dylan@hardison.net> | 2018-04-08 05:57:06 +0200 |
commit | b0935c1e52eea1dfc70652bf6fcb7c8b856a8826 (patch) | |
tree | 2400c507178262779288c10ccdfc773d858da098 /votes.cgi | |
parent | 2d80cea9010f694524f5d165a19697c47535d779 (diff) | |
download | bugzilla-b0935c1e52eea1dfc70652bf6fcb7c8b856a8826.tar.gz bugzilla-b0935c1e52eea1dfc70652bf6fcb7c8b856a8826.tar.xz |
Bug 1446236 - Add & use simpler method to check if an extension is present (#35)
Diffstat (limited to 'votes.cgi')
-rwxr-xr-x | votes.cgi | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -30,8 +30,7 @@ use lib qw(. lib local/lib/perl5); use Bugzilla; use Bugzilla::Error; -my $is_enabled = grep { $_->NAME eq 'Voting' } @{ Bugzilla->extensions }; -$is_enabled || ThrowCodeError('extension_disabled', { name => 'Voting' }); +Bugzilla->has_extension('Voting') || ThrowCodeError('extension_disabled', { name => 'Voting' }); my $cgi = Bugzilla->cgi; my $action = $cgi->param('action') || 'show_user'; |