MDL-9372 - only show RSS options in database module when RSS is enabled

merged from MOODLE_19_STABLE
This commit is contained in:
poltawski 2008-01-08 13:40:32 +00:00
parent 8857a0b425
commit 4282d047c2

View File

@ -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 {
}
}
?>
?>