Merge branch 'MDL-63583-master' of git://github.com/jleyva/moodle

This commit is contained in:
Eloy Lafuente (stronk7) 2018-10-16 00:29:02 +02:00
commit 1a51deaf69

View File

@ -3051,6 +3051,7 @@ class core_course_external extends external_api {
*/
public static function get_courses_by_field($field = '', $value = '') {
global $DB, $CFG;
require_once($CFG->dirroot . '/course/lib.php');
require_once($CFG->libdir . '/filterlib.php');
$params = self::validate_parameters(self::get_courses_by_field_parameters(),