]> git.mjollnir.org Git - moodle.git/commitdiff
web service MDL-12886 restore the web service switch
authorjerome <jerome>
Thu, 15 Jan 2009 07:53:10 +0000 (07:53 +0000)
committerjerome <jerome>
Thu, 15 Jan 2009 07:53:10 +0000 (07:53 +0000)
webservice/rest/server.php
webservice/soap/server.php

index 5f84d7a7aec4912f41cff733ce04c861c857f365..20eb8afbff39e4920a5567770cb0bd258ce7f4eb 100644 (file)
 require_once(dirname(dirname(dirname(__FILE__))) . '/config.php');
 require_once('lib.php');
 
+if (empty($CFG->enablewebservices)) {
+    die;
+}
+
 //retrieve path and function name from the URL
 $rest_arguments = get_file_argument('server.php');
 
index 6e9c9856d61aef443d42c7be6b991a91181da542..278d3c1619f355bd449f62d1c6fc63704dfc5af7 100644 (file)
  */
 require_once(dirname(__FILE__) . '/../../config.php');
 
+if (empty($CFG->enablewebservices)) {
+    die;
+}
+
 //retrieve the api name
 $classpath = optional_param(classpath,null,PARAM_ALPHA);
 require_once(dirname(__FILE__) . '/../../'.$classpath.'/wsapi.php');