blocks MDL-25093 fixed an error that meant that the course limit wasnt being applied in the course overview

This commit is contained in:
Andrew Davis 2010-11-08 05:27:04 +00:00
parent b871436148
commit 448d604cb4

View file

@ -64,7 +64,7 @@ class block_course_overview extends block_base {
$courses_limit = $courses_limit + 1; $courses_limit = $courses_limit + 1;
} }
$courses = enrol_get_my_courses(NULL, 'visible DESC,sortorder ASC', '*', $courses_limit); $courses = enrol_get_my_courses('id, shortname', 'visible DESC,sortorder ASC', $courses_limit);
$site = get_site(); $site = get_site();
$course = $site; //just in case we need the old global $course hack $course = $site; //just in case we need the old global $course hack