mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
MDL-41191 forum: convert use of deprecated function
This commit is contained in:
parent
de31668790
commit
cc8c7eaebd
@ -8134,7 +8134,7 @@ function forum_get_courses_user_posted_in($user, $discussionsonly = false, $incl
|
||||
WHERE $wheresql";
|
||||
$courses = $DB->get_records_sql($sql, $params, $limitfrom, $limitnum);
|
||||
if ($includecontexts) {
|
||||
array_map('context_instance_preload', $courses);
|
||||
array_map('context_helper::preload_from_record', $courses);
|
||||
}
|
||||
return $courses;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user