Merge branch 'MDL-48578-27' of git://github.com/jleyva/moodle into MOODLE_27_STABLE

This commit is contained in:
Eloy Lafuente (stronk7)
2015-02-03 00:47:53 +01:00
+1
View File
@@ -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) {