From 4b2c9f0f96242fcd5395c088de4e27bffbfb8085 Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" <> Date: Tue, 10 Nov 2009 21:19:46 +0000 Subject: Bug 527505: Make 001compile.t use Bugzilla->feature to determine which modules to compile Patch by Max Kanat-Alexander r=LpSolit, a=mkanat --- jsonrpc.cgi | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'jsonrpc.cgi') 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); -- cgit v1.2.3-24-g4f1b