MDL-59140 core: apply limit only on courses to be shown in specific nav
authorMark Nelson <markn@moodle.com>
Thu, 15 Jun 2017 04:14:29 +0000 (12:14 +0800)
committerMark Nelson <markn@moodle.com>
Thu, 15 Jun 2017 05:10:14 +0000 (13:10 +0800)
commit3dabb083ad2d01a0e053b4f24fb99d2cdeb38a52
treefe43925147e59ef6808b649c05f8fde302c06a01
parentbb931788cc6f629e834653ef5bbd8b1a7021ff6e
MDL-59140 core: apply limit only on courses to be shown in specific nav

There can be a different number of courses displayed in the
'Navigation' block and in the 'Flat' navigation. This patch
decides what courses we want to display on each, then
applies the 'navcourselimit' setting individually.
lib/navigationlib.php