MDL-41191 forum: convert use of deprecated function

This commit is contained in:
Dan Poltawski 2013-08-14 17:04:24 +08:00
parent de31668790
commit cc8c7eaebd

View File

@ -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;
}