mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
Merge branch 'MDL-58070-visible-reword' of https://github.com/DSI-Universite-Rennes2/moodle
This commit is contained in:
commit
842217de6c
3 changed files with 6 additions and 4 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue