]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-9372 - only show RSS options in database module when RSS is enabled
authorpoltawski <poltawski>
Tue, 8 Jan 2008 13:40:32 +0000 (13:40 +0000)
committerpoltawski <poltawski>
Tue, 8 Jan 2008 13:40:32 +0000 (13:40 +0000)
merged from MOODLE_19_STABLE

mod/data/mod_form.php

index b65fc9b165ff6588d84bc64765620b77f1ebb46e..2d53ea6f6cfa4b577ceee0678532b94c902721f4 100644 (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 {
     }
 
 }
-?>
\ No newline at end of file
+?>