summaryrefslogtreecommitdiffstats
path: root/jsonrpc.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'jsonrpc.cgi')
-rwxr-xr-xjsonrpc.cgi7
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;