mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 16:32:18 +02:00
MDL-48578 webservices: Fixed missing required library
This commit is contained in:
parent
4c27f52d91
commit
11d83ab30b
@ -532,6 +532,7 @@ class core_message_external extends external_api {
|
||||
*/
|
||||
public static function search_contacts($searchtext, $onlymycourses = false) {
|
||||
global $CFG, $USER;
|
||||
require_once($CFG->dirroot . '/user/lib.php');
|
||||
|
||||
// Check if messaging is enabled.
|
||||
if (!$CFG->messaging) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user