MDL-60809 xmlrpc: Include filelib when making xmlrpc call

This commit is contained in:
Cameron Ball
2017-11-16 14:46:36 +08:00
parent 4275ea4a43
commit d3e980c4ea
+3
View File
@@ -68,6 +68,9 @@ class webservice_xmlrpc_client {
* @throws moodle_exception
*/
public function call($functionname, $params = array()) {
global $CFG;
require_once($CFG->libdir . '/filelib.php');
if ($this->token) {
$this->serverurl->param('wstoken', $this->token);
}