mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
Merge branch 'MDL46887_assignment_file_max_size' of git://github.com/Dave-B/moodle
This commit is contained in:
commit
e55cecf05f
@ -131,6 +131,10 @@ class assign_submission_file extends assign_submission_plugin {
|
||||
'maxfiles'=>$this->get_config('maxfilesubmissions'),
|
||||
'accepted_types'=>'*',
|
||||
'return_types'=>FILE_INTERNAL);
|
||||
if ($fileoptions['maxbytes'] == 0) {
|
||||
// Use module default.
|
||||
$fileoptions['maxbytes'] = get_config('assignsubmission_file', 'maxbytes');
|
||||
}
|
||||
return $fileoptions;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user