diff options
author | mkanat%bugzilla.org <> | 2009-11-10 22:19:46 +0100 |
---|---|---|
committer | mkanat%bugzilla.org <> | 2009-11-10 22:19:46 +0100 |
commit | 4b2c9f0f96242fcd5395c088de4e27bffbfb8085 (patch) | |
tree | 28f8d647697438d28cd38ec9aa901e04823c0ec5 /xmlrpc.cgi | |
parent | 2f804027b44c5790d4547f3161bff28266150bef (diff) | |
download | bugzilla-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 'xmlrpc.cgi')
-rwxr-xr-x | xmlrpc.cgi | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/xmlrpc.cgi b/xmlrpc.cgi index 994e3a485..8b1e69f28 100755 --- a/xmlrpc.cgi +++ b/xmlrpc.cgi @@ -22,12 +22,12 @@ use Bugzilla; use Bugzilla::Constants; use Bugzilla::Error; use Bugzilla::WebService::Constants; -if (!Bugzilla->feature('xmlrpc')) { - ThrowCodeError('feature_disabled', { feature => 'xmlrpc' }); +BEGIN { + if (!Bugzilla->feature('xmlrpc')) { + ThrowCodeError('feature_disabled', { feature => 'xmlrpc' }); + } } -# Use an eval here so that runtests.pl accepts this script even if SOAP-Lite -# is not installed. -eval { require Bugzilla::WebService::Server::XMLRPC; }; +use Bugzilla::WebService::Server::XMLRPC; Bugzilla->usage_mode(USAGE_MODE_XMLRPC); |