mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
MDL-41191 forum: convert use of deprecated function
This commit is contained in:
parent
de31668790
commit
cc8c7eaebd
1 changed files with 1 additions and 1 deletions
|
@ -8134,7 +8134,7 @@ function forum_get_courses_user_posted_in($user, $discussionsonly = false, $incl
|
||||||
WHERE $wheresql";
|
WHERE $wheresql";
|
||||||
$courses = $DB->get_records_sql($sql, $params, $limitfrom, $limitnum);
|
$courses = $DB->get_records_sql($sql, $params, $limitfrom, $limitnum);
|
||||||
if ($includecontexts) {
|
if ($includecontexts) {
|
||||||
array_map('context_instance_preload', $courses);
|
array_map('context_helper::preload_from_record', $courses);
|
||||||
}
|
}
|
||||||
return $courses;
|
return $courses;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue