web service MDL-12886 restore the web service switch

This commit is contained in:
jerome 2009-01-15 07:53:10 +00:00
parent c51c539d11
commit c6c7b334c6
2 changed files with 8 additions and 0 deletions

View File

@ -15,6 +15,10 @@
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');

View File

@ -12,6 +12,10 @@
*/
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');