mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 09:26:35 +02:00
MDL-46887 mod_assign: Enforce module's maxbytes setting at submission.
This commit is contained in:
parent
14cb870f46
commit
6ba716c118
1 changed files with 4 additions and 0 deletions
|
@ -131,6 +131,10 @@ class assign_submission_file extends assign_submission_plugin {
|
||||||
'maxfiles'=>$this->get_config('maxfilesubmissions'),
|
'maxfiles'=>$this->get_config('maxfilesubmissions'),
|
||||||
'accepted_types'=>'*',
|
'accepted_types'=>'*',
|
||||||
'return_types'=>FILE_INTERNAL);
|
'return_types'=>FILE_INTERNAL);
|
||||||
|
if ($fileoptions['maxbytes'] == 0) {
|
||||||
|
// Use module default.
|
||||||
|
$fileoptions['maxbytes'] = get_config('assignsubmission_file', 'maxbytes');
|
||||||
|
}
|
||||||
return $fileoptions;
|
return $fileoptions;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue