Merge branch 'MDL-35010' of git://github.com/stronk7/moodle

This commit is contained in:
Aparup Banerjee 2012-08-30 10:38:15 +08:00
commit 2e8bf83d1b

View File

@ -38,6 +38,7 @@ class editsection_form extends moodleform {
$course = $this->_customdata['course'];
if (!empty($CFG->enableavailability)) {
$mform->addElement('header', '', get_string('availabilityconditions', 'condition'));
// String used by conditions more than once
$strcondnone = get_string('none', 'condition');
// Grouping conditions - only if grouping is enabled at site level
@ -51,7 +52,6 @@ class editsection_form extends moodleform {
$grouping->name, true, array('context' => $context));
}
}
$mform->addElement('header', '', get_string('availabilityconditions', 'condition'));
$mform->addElement('select', 'groupingid', get_string('groupingsection', 'group'), $options);
$mform->addHelpButton('groupingid', 'groupingsection', 'group');
}