commit 05d622b8db6fd7c41bfd8f45c157f1b42b6e954d Author: Jay Knight Date: Thu Aug 19 13:22:45 2010 -0500 MDL-23548 Don't list courses that you can't do anything with diff --git a/admin/settings/appearance.php b/admin/settings/appearance.php index 5ff571d..2d7c25d 100644 --- a/admin/settings/appearance.php +++ b/admin/settings/appearance.php @@ -86,6 +86,7 @@ if ($hassiteconfig) { // speedup for non-admins, add all caps used on this page HOMEPAGE_USER => get_string('userpreference', 'admin') ); $temp->add(new admin_setting_configselect('defaulthomepage', get_string('defaulthomepage', 'admin'), get_string('configdefaulthomepage', 'admin'), HOMEPAGE_SITE, $choices)); + $temp->add(new admin_setting_configcheckbox('hidenotenrollable', get_string('hidenotenrollable', 'admin'), get_string('confighidenotenrollable', 'admin'), 0)); $temp->add(new admin_setting_configcheckbox('navshowcategories', get_string('navshowcategories', 'admin'), get_string('confignavshowcategories', 'admin'), 1)); $temp->add(new admin_setting_configcheckbox('navshowallcourses', get_string('navshowallcourses', 'admin'), get_string('confignavshowallcourses', 'admin'), 0)); $temp->add(new admin_setting_configtext('navcourselimit',get_string('navcourselimit','admin'),get_string('confignavcourselimit', 'admin'),20,PARAM_INT)); diff --git a/course/lib.php b/course/lib.php index ca65cf7..5172adb 100644 --- a/course/lib.php +++ b/course/lib.php @@ -2199,7 +2199,24 @@ function print_courses($category) { echo '