summaryrefslogtreecommitdiffstats
path: root/rest.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'rest.cgi')
-rwxr-xr-xrest.cgi9
1 files changed, 4 insertions, 5 deletions
diff --git a/rest.cgi b/rest.cgi
index b64a6e6a3..79ea04d16 100755
--- a/rest.cgi
+++ b/rest.cgi
@@ -16,12 +16,11 @@ use Bugzilla;
use Bugzilla::Constants;
use Bugzilla::Error;
use Bugzilla::WebService::Constants;
+
BEGIN {
- if (!Bugzilla->feature('rest')
- || !Bugzilla->feature('jsonrpc'))
- {
- ThrowUserError('feature_disabled', { feature => 'rest' });
- }
+ if (!Bugzilla->feature('rest') || !Bugzilla->feature('jsonrpc')) {
+ ThrowUserError('feature_disabled', {feature => 'rest'});
+ }
}
use Bugzilla::WebService::Server::REST;