From 497bad9012e68132fe4e469424934339aeaf017b Mon Sep 17 00:00:00 2001 From: dongsheng Date: Wed, 1 Apr 2009 07:38:32 +0000 Subject: [PATCH] "MDL-13224, select how many courses can be shown in mymoodle page" --- my/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5