Skip to content
This repository has been archived by the owner on Dec 13, 2024. It is now read-only.

Commit

Permalink
MDL-60809 xmlrpc: Include filelib when making xmlrpc call
Browse files Browse the repository at this point in the history
  • Loading branch information
cameorn1730 committed Nov 16, 2017
1 parent 4275ea4 commit d3e980c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions webservice/xmlrpc/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ public function set_token($token) {
* @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);
}
Expand Down

0 comments on commit d3e980c

Please sign in to comment.