From: dongsheng Date: Wed, 1 Apr 2009 07:38:32 +0000 (+0000) Subject: "MDL-13224, select how many courses can be shown in mymoodle page" X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=497bad9012e68132fe4e469424934339aeaf017b;p=moodle.git "MDL-13224, select how many courses can be shown in mymoodle page" --- diff --git a/my/index.php b/my/index.php index 651865f669..9edf5d549a 100644 --- a/my/index.php +++ b/my/index.php @@ -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