diff options
Diffstat (limited to 'jsonrpc.cgi')
-rwxr-xr-x | jsonrpc.cgi | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/jsonrpc.cgi b/jsonrpc.cgi index 95ea5c208..9485c1d87 100755 --- a/jsonrpc.cgi +++ b/jsonrpc.cgi @@ -16,10 +16,11 @@ use Bugzilla; use Bugzilla::Constants; use Bugzilla::Error; use Bugzilla::WebService::Constants; + BEGIN { - if (!Bugzilla->feature('jsonrpc')) { - ThrowCodeError('feature_disabled', { feature => 'jsonrpc' }); - } + if (!Bugzilla->feature('jsonrpc')) { + ThrowCodeError('feature_disabled', {feature => 'jsonrpc'}); + } } use Bugzilla::WebService::Server::JSONRPC; |