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

backported from MOODLE_19_STABLE
This commit is contained in:
poltawski
2008-01-08 13:43:42 +00:00
parent 841dca3991
commit 99797689e6
+4 -2
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'));
@@ -65,4 +67,4 @@ class mod_data_mod_form extends moodleform_mod {
}
?>
?>