mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-39077 maxbytes - fix warnings for cli install
This commit is contained in:
parent
e7ff753cab
commit
c9c01f75b1
5 changed files with 19 additions and 7 deletions
|
@ -45,8 +45,12 @@ if ($ADMIN->fulltree) {
|
|||
get_string('configmanydiscussions', 'forum'), 100, PARAM_INT));
|
||||
|
||||
if (isset($CFG->maxbytes)) {
|
||||
$maxbytes = 0;
|
||||
if (isset($CFG->forum_maxbytes)) {
|
||||
$maxbytes = $CFG->forum_maxbytes;
|
||||
}
|
||||
$settings->add(new admin_setting_configselect('forum_maxbytes', get_string('maxattachmentsize', 'forum'),
|
||||
get_string('configmaxbytes', 'forum'), 512000, get_max_upload_sizes($CFG->maxbytes, 0, 0, $CFG->forum_maxbytes)));
|
||||
get_string('configmaxbytes', 'forum'), 512000, get_max_upload_sizes($CFG->maxbytes, 0, 0, $maxbytes)));
|
||||
}
|
||||
|
||||
// Default number of attachments allowed per post in all forums
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue