aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormkanat%bugzilla.org <>2009-10-24 05:21:06 +0000
committermkanat%bugzilla.org <>2009-10-24 05:21:06 +0000
commita2dd3b00284fd4724d3408274cb1156c7a77d187 (patch)
tree4aa41a1c8cea9d31aaccddc4685f8f1c5991c1b4 /xmlrpc.cgi
parentBug 365267: attachment.cgi should not be editable when the user is not logged... (diff)
downloadbugzilla-a2dd3b00284fd4724d3408274cb1156c7a77d187.tar.gz
bugzilla-a2dd3b00284fd4724d3408274cb1156c7a77d187.tar.bz2
bugzilla-a2dd3b00284fd4724d3408274cb1156c7a77d187.zip
Bug 520948: Use Bugzilla->feature and feature_enabled everywhere instead of checking if modules are installed
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=LpSolit
Diffstat (limited to 'xmlrpc.cgi')
-rwxr-xr-xxmlrpc.cgi5
1 files changed, 3 insertions, 2 deletions
diff --git a/xmlrpc.cgi b/xmlrpc.cgi
index c98dd1b73..994e3a485 100755
--- a/xmlrpc.cgi
+++ b/xmlrpc.cgi
@@ -22,11 +22,12 @@ use Bugzilla;
use Bugzilla::Constants;
use Bugzilla::Error;
use Bugzilla::WebService::Constants;
-
+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; };
-$@ && ThrowCodeError('soap_not_installed');
Bugzilla->usage_mode(USAGE_MODE_XMLRPC);