mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 09:26:35 +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
|
@ -47,8 +47,8 @@ if ($ADMIN->fulltree) {
|
|||
get_string('configgradedecimals', 'workshop'), 0, $options));
|
||||
|
||||
if (isset($CFG->maxbytes)) {
|
||||
$config = get_config('workshop');
|
||||
$options = get_max_upload_sizes($CFG->maxbytes, 0, 0, $config->maxbytes);
|
||||
$maxbytes = get_config('workshop', 'maxbytes');
|
||||
$options = get_max_upload_sizes($CFG->maxbytes, 0, 0, $maxbytes);
|
||||
$settings->add(new admin_setting_configselect('workshop/maxbytes', get_string('maxbytes', 'workshop'),
|
||||
get_string('configmaxbytes', 'workshop'), 0, $options));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue