Commit 6f6586b1 authored by Marina Glancy's avatar Marina Glancy
Browse files

MDL-73564 webservice: make sure to require webservice lib once

parent e78184d8
......@@ -25,7 +25,7 @@
*/
require_once('../../config.php');
require_once($CFG->libdir . '/adminlib.php');
require($CFG->dirroot . '/webservice/lib.php');
require_once($CFG->dirroot . '/webservice/lib.php');
admin_externalpage_setup('webservicedocumentation');
......
......@@ -40,7 +40,7 @@ $rsstokenboxhtml = $webservicetokenboxhtml = '';
if ( !is_siteadmin($USER->id)
&& !empty($CFG->enablewebservices)
&& has_capability('moodle/webservice:createtoken', $usercontext )) {
require($CFG->dirroot.'/webservice/lib.php');
require_once($CFG->dirroot.'/webservice/lib.php');
$action = optional_param('action', '', PARAM_ALPHANUMEXT);
$tokenid = optional_param('tokenid', '', PARAM_SAFEDIR);
......
......@@ -24,7 +24,7 @@
*/
require_once('../config.php');
require($CFG->dirroot . '/webservice/lib.php');
require_once($CFG->dirroot . '/webservice/lib.php');
require_login();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment