summaryrefslogtreecommitdiffstats
path: root/jsonrpc.cgi
diff options
context:
space:
mode:
authormkanat%bugzilla.org <>2009-11-10 22:19:46 +0100
committermkanat%bugzilla.org <>2009-11-10 22:19:46 +0100
commit4b2c9f0f96242fcd5395c088de4e27bffbfb8085 (patch)
tree28f8d647697438d28cd38ec9aa901e04823c0ec5 /jsonrpc.cgi
parent2f804027b44c5790d4547f3161bff28266150bef (diff)
downloadbugzilla-4b2c9f0f96242fcd5395c088de4e27bffbfb8085.tar.gz
bugzilla-4b2c9f0f96242fcd5395c088de4e27bffbfb8085.tar.xz
Bug 527505: Make 001compile.t use Bugzilla->feature to determine which modules to compile
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=mkanat
Diffstat (limited to 'jsonrpc.cgi')
-rwxr-xr-xjsonrpc.cgi10
1 files changed, 5 insertions, 5 deletions
diff --git a/jsonrpc.cgi b/jsonrpc.cgi
index 25fb4c175..ad910e79e 100755
--- a/jsonrpc.cgi
+++ b/jsonrpc.cgi
@@ -27,12 +27,12 @@ use Bugzilla;
use Bugzilla::Constants;
use Bugzilla::Error;
use Bugzilla::WebService::Constants;
-if (!Bugzilla->feature('jsonrpc')) {
- ThrowCodeError('feature_disabled', { feature => 'jsonrpc' });
+BEGIN {
+ if (!Bugzilla->feature('jsonrpc')) {
+ ThrowCodeError('feature_disabled', { feature => 'jsonrpc' });
+ }
}
-
-# This eval allows runtests.pl to pass.
-eval { require Bugzilla::WebService::Server::JSONRPC; };
+use Bugzilla::WebService::Server::JSONRPC;
Bugzilla->usage_mode(USAGE_MODE_JSON);