]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-12886 adding killswitch for webservices - again!
authorskodak <skodak>
Thu, 15 Jan 2009 17:22:50 +0000 (17:22 +0000)
committerskodak <skodak>
Thu, 15 Jan 2009 17:22:50 +0000 (17:22 +0000)
webservice/rest/testclient/config_rest.php

index f0f571196e191f302d2308a1befee48f3d420e62..8f9e94415b1dbf078c7a843f09b7c5ab9d39822f 100644 (file)
 require_once("../../../config.php");
 require_once ('lib.php');
 
+if (empty($CFG->enablewebservices)) {
+    die;
+}
+
 $CFG->serverurl = $CFG->wwwroot.'/webservice/rest/server.php';
 if (!function_exists('curl_init')) die ('CURL library was not found!');