mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
MDL-58919 mod_assign: fix check for existing setting
This commit is contained in:
parent
b78887cc4b
commit
412a56027b
@ -71,8 +71,9 @@ class assign_submission_file extends assign_submission_plugin {
|
||||
|
||||
$defaultmaxfilesubmissions = $this->get_config('maxfilesubmissions');
|
||||
$defaultmaxsubmissionsizebytes = $this->get_config('maxsubmissionsizebytes');
|
||||
$defaultfiletypes = $this->get_config('filetypeslist');
|
||||
if ($defaultfiletypes === false) {
|
||||
if ($this->assignment->has_instance()) {
|
||||
$defaultfiletypes = $this->get_config('filetypeslist');
|
||||
} else {
|
||||
$defaultfiletypes = get_config('assignsubmission_file', 'filetypes');
|
||||
}
|
||||
$defaultfiletypes = (string)$defaultfiletypes;
|
||||
|
Loading…
x
Reference in New Issue
Block a user