mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
MDL-15249 fixed installation warnings
This commit is contained in:
parent
aa282b10fb
commit
e3ea4a75e9
@ -2,8 +2,10 @@
|
||||
|
||||
require_once($CFG->dirroot.'/mod/assignment/lib.php');
|
||||
|
||||
$settings->add(new admin_setting_configselect('assignment_maxbytes', get_string('maximumsize', 'assignment'),
|
||||
get_string('configmaxbytes', 'assignment'), 1048576, get_max_upload_sizes($CFG->maxbytes)));
|
||||
if (isset($CFG->maxbytes)) {
|
||||
$settings->add(new admin_setting_configselect('assignment_maxbytes', get_string('maximumsize', 'assignment'),
|
||||
get_string('configmaxbytes', 'assignment'), 1048576, get_max_upload_sizes($CFG->maxbytes)));
|
||||
}
|
||||
|
||||
$options = array(ASSIGNMENT_COUNT_WORDS => trim(get_string('numwords', '')),
|
||||
ASSIGNMENT_COUNT_LETTERS => trim(get_string('numletters', '')));
|
||||
|
@ -20,8 +20,10 @@ $settings->add(new admin_setting_configtext('forum_longpost', get_string('longpo
|
||||
$settings->add(new admin_setting_configtext('forum_manydiscussions', get_string('manydiscussions', 'forum'),
|
||||
get_string('configmanydiscussions', 'forum'), 100, PARAM_INT));
|
||||
|
||||
$settings->add(new admin_setting_configselect('forum_maxbytes', get_string('maxattachmentsize', 'forum'),
|
||||
get_string('configmaxbytes', 'forum'), 512000, get_max_upload_sizes($CFG->maxbytes)));
|
||||
if (isset($CFG->maxbytes)) {
|
||||
$settings->add(new admin_setting_configselect('forum_maxbytes', get_string('maxattachmentsize', 'forum'),
|
||||
get_string('configmaxbytes', 'forum'), 512000, get_max_upload_sizes($CFG->maxbytes)));
|
||||
}
|
||||
|
||||
// Default number of attachments allowed per post in all forums
|
||||
$settings->add(new admin_setting_configtext('forum_maxattachments', get_string('maxattachments', 'forum'),
|
||||
|
Loading…
x
Reference in New Issue
Block a user