mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 04:30:15 +01:00
web service MDL-12886 restore the web service switch
This commit is contained in:
parent
c51c539d11
commit
c6c7b334c6
@ -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');
|
||||
|
||||
|
@ -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');
|
||||
|
Loading…
x
Reference in New Issue
Block a user