Merge branch 'MDL-58070-visible-reword' of https://github.com/DSI-Universite-Rennes2/moodle

This commit is contained in:
David Monllao 2017-03-28 17:46:00 +02:00
commit 842217de6c
3 changed files with 6 additions and 4 deletions

View file

@ -106,8 +106,8 @@ class course_edit_form extends moodleform {
$choices = array();
$choices['0'] = get_string('hide');
$choices['1'] = get_string('show');
$mform->addElement('select', 'visible', get_string('visible'), $choices);
$mform->addHelpButton('visible', 'visible');
$mform->addElement('select', 'visible', get_string('coursevisibility'), $choices);
$mform->addHelpButton('visible', 'coursevisibility');
$mform->setDefault('visible', $courseconfig->visible);
if (!empty($course->id)) {
if (!has_capability('moodle/course:visibility', $coursecontext)) {