forum MDL-23671 Fixed defaults for forum maxattachments
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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'),
|
||||
|
||||
Reference in New Issue
Block a user