MDL-15249 fixed installation warnings

This commit is contained in:
skodak 2009-05-25 21:04:29 +00:00
parent aa282b10fb
commit e3ea4a75e9
2 changed files with 8 additions and 4 deletions

View File

@ -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', '')));

View File

@ -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'),