MDL-41191 forum: convert use of deprecated function
authorDan Poltawski <dan@moodle.com>
Wed, 14 Aug 2013 09:04:24 +0000 (17:04 +0800)
committerDan Poltawski <dan@moodle.com>
Thu, 15 Aug 2013 03:50:08 +0000 (11:50 +0800)
mod/forum/lib.php

index 8a5a46b..ca61d98 100644 (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;
 }