aboutsummaryrefslogtreecommitdiff
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 f12fb64c4..892cb62dd 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;
Bugzilla->usage_mode(USAGE_MODE_REST);