forum MDL-23671 Fixed defaults for forum maxattachments

This commit is contained in:
Sam Hemelryk
2010-08-05 07:40:53 +00:00
parent 8e1e3c146d
commit 3db7b87807
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -77,7 +77,7 @@ class mod_forum_mod_form extends moodleform_mod {
$mform->addHelpButton('maxbytes', 'maxattachmentsize', 'forum');
$mform->setDefault('maxbytes', $CFG->forum_maxbytes);
$choices = array(0,1,2,3,4,5,6,7,8,9);
$choices = array(0,1,2,3,4,5,6,7,8,9,10,20,50,100);
$mform->addElement('select', 'maxattachments', get_string('maxattachments', 'forum'), $choices);
$mform->addHelpButton('maxattachments', 'maxattachments', 'forum');
$mform->setDefault('maxattachments', $CFG->forum_maxattachments);
+1 -1
View File
@@ -51,7 +51,7 @@ if ($ADMIN->fulltree) {
// Default number of attachments allowed per post in all forums
$settings->add(new admin_setting_configtext('forum_maxattachments', get_string('maxattachments', 'forum'),
get_string('configmaxattachments', 'forum'), 100, PARAM_INT));
get_string('configmaxattachments', 'forum'), 9, PARAM_INT));
// Default whether user needs to mark a post as read
$settings->add(new admin_setting_configcheckbox('forum_trackreadposts', get_string('trackforum', 'forum'),