Skip to content

Commit

Permalink
"MDL-13224, select how many courses can be shown in mymoodle page"
Browse files Browse the repository at this point in the history
  • Loading branch information
dongsheng committed Apr 1, 2009
1 parent ebb1a1e commit 497bad9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion my/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
if (!empty($CFG->mycoursesperpage) && is_int($CFG->mycoursesperpage)) {
$courses_limit = $CFG->mycoursesperpage;
}
$courses = get_my_courses($USER->id, 'visible DESC,sortorder ASC', '*', false, $CFG->mycoursesperpage);
$courses = get_my_courses($USER->id, 'visible DESC,sortorder ASC', '*', false, $courses_limit);
$site = get_site();
$course = $site; //just in case we need the old global $course hack

Expand Down

0 comments on commit 497bad9

Please sign in to comment.