We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b0f0bda commit 60c7e94Copy full SHA for 60c7e94
votes.cgi
@@ -30,8 +30,7 @@ use lib qw(. lib local/lib/perl5);
30
use Bugzilla;
31
use Bugzilla::Error;
32
33
-my $is_enabled = grep { $_->NAME eq 'Voting' } @{Bugzilla->extensions};
34
-$is_enabled || ThrowCodeError('extension_disabled', {name => 'Voting'});
+Bugzilla->has_extension('Voting') || ThrowCodeError('extension_disabled', { name => 'Voting' });
35
36
my $cgi = Bugzilla->cgi;
37
my $action = $cgi->param('action') || 'show_user';
0 commit comments