mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
"MDL-13224, select how many courses can be shown in mymoodle page"
This commit is contained in:
parent
8ef19a1ede
commit
ebb1a1e847
3 changed files with 7 additions and 2 deletions
|
@ -60,7 +60,11 @@
|
|||
/// The main overview in the middle of the page
|
||||
|
||||
// limits the number of courses showing up
|
||||
$courses = get_my_courses($USER->id, 'visible DESC,sortorder ASC', '*', false, 21);
|
||||
$courses_limit = 21;
|
||||
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);
|
||||
$site = get_site();
|
||||
$course = $site; //just in case we need the old global $course hack
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue