Merge branch 'MDL-60809-master' of git://git.cameron1729.xyz/moodle
authorDamyon Wiese <damyon@moodle.com>
Mon, 20 Nov 2017 07:29:53 +0000 (15:29 +0800)
committerDamyon Wiese <damyon@moodle.com>
Mon, 20 Nov 2017 07:29:53 +0000 (15:29 +0800)
webservice/xmlrpc/lib.php

index e002689..75268d8 100644 (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);
         }