From 76b6407cb8211b1ba2b76b1db77b8bbd04cb245c Mon Sep 17 00:00:00 2001 From: Mark Nelson Date: Fri, 9 Jun 2017 11:47:22 +0800 Subject: [PATCH] MDL-59140 core: changes to the 'navcourselimit' setting Changed the default and description. --- admin/settings/appearance.php | 3 ++- lang/en/admin.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/admin/settings/appearance.php b/admin/settings/appearance.php index 5a20af8e8e3..1a63f4f1cfa 100644 --- a/admin/settings/appearance.php +++ b/admin/settings/appearance.php @@ -179,7 +179,8 @@ preferences,moodle|/user/preferences.php|preferences', 'idnumber' => new lang_string('sort_idnumber', 'admin'), ); $temp->add(new admin_setting_configselect('navsortmycoursessort', new lang_string('navsortmycoursessort', 'admin'), new lang_string('navsortmycoursessort_help', 'admin'), 'sortorder', $sortoptions)); - $temp->add(new admin_setting_configtext('navcourselimit',new lang_string('navcourselimit','admin'),new lang_string('confignavcourselimit', 'admin'),20,PARAM_INT)); + $temp->add(new admin_setting_configtext('navcourselimit', new lang_string('navcourselimit', 'admin'), + new lang_string('confignavcourselimit', 'admin'), 10, PARAM_INT)); $temp->add(new admin_setting_configcheckbox('usesitenameforsitepages', new lang_string('usesitenameforsitepages', 'admin'), new lang_string('configusesitenameforsitepages', 'admin'), 0)); $temp->add(new admin_setting_configcheckbox('linkadmincategories', new lang_string('linkadmincategories', 'admin'), new lang_string('linkadmincategories_help', 'admin'), 1)); $temp->add(new admin_setting_configcheckbox('linkcoursesections', new lang_string('linkcoursesections', 'admin'), new lang_string('linkcoursesections_help', 'admin'), 0)); diff --git a/lang/en/admin.php b/lang/en/admin.php index f0d5e4f4c94..b9bb1e5cded 100644 --- a/lang/en/admin.php +++ b/lang/en/admin.php @@ -274,7 +274,7 @@ $string['configmodchooserdefault'] = 'Should the activity chooser be presented t $string['configmycoursesperpage'] = 'Maximum number of courses to display in any list of a user\'s own courses'; $string['configmymoodleredirect'] = 'This setting forces redirects to /my on login for non-admins and replaces the top level site navigation with /my'; $string['configmypagelocked'] = 'This setting prevents the default page from being edited by any non-admins'; -$string['confignavcourselimit'] = 'Limits the number of courses shown to the user when they are either not logged in or are not enrolled in any courses.'; +$string['confignavcourselimit'] = 'Limits the number of courses shown to the user in the navigation.'; $string['confignavshowallcourses'] = 'This setting determines whether users who are enrolled in courses can see Courses (listing all courses) in the navigation, in addition to My Courses (listing courses in which they are enrolled).'; $string['confignavshowcategories'] = 'Show course categories in the navigation bar and navigation blocks. This does not occur with courses the user is currently enrolled in, they will still be listed under mycourses without categories.'; $string['confignoreplyaddress'] = 'Emails are sometimes sent out on behalf of a user (eg forum posts). The email address you specify here will be used as the "From" address in those cases when the recipients should not be able to reply directly to the user (eg when a user chooses to keep their address private). This setting will also be used as the envelope sender when sending email.';