mirror of
https://github.com/moodle/moodle.git
synced 2025-04-16 14:02:32 +02:00
MDL-9372 - only show RSS options in database module when RSS is enabled
merged from MOODLE_19_STABLE
This commit is contained in:
parent
8857a0b425
commit
4282d047c2
@ -48,7 +48,9 @@ class mod_data_mod_form extends moodleform_mod {
|
||||
$mform->addElement('select', 'approval', get_string('requireapproval', 'data'), $ynoptions);
|
||||
$mform->setHelpButton('approval', array('requireapproval', get_string('requireapproval', 'data'), 'data'));
|
||||
|
||||
$mform->addElement('select', 'rssarticles', get_string('numberrssarticles', 'data') , $countoptions);
|
||||
if($CFG->enablerssfeeds && $CFG->data_enablerssfeeds){
|
||||
$mform->addElement('select', 'rssarticles', get_string('numberrssarticles', 'data') , $countoptions);
|
||||
}
|
||||
|
||||
$mform->addElement('checkbox', 'assessed', get_string('allowratings', 'data') , get_string('ratingsuse', 'data'));
|
||||
|
||||
@ -70,4 +72,4 @@ class mod_data_mod_form extends moodleform_mod {
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
?>
|
||||
|
Loading…
x
Reference in New Issue
Block a user