MDL-12886 adding killswitch for webservices - again!
This commit is contained in:
@@ -13,6 +13,10 @@
|
||||
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!');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user