mirror of
https://github.com/moodle/moodle.git
synced 2025-08-07 01:46:45 +02:00
Merge branch 'MDL-63231-set-default-value-for-int-param-MOODLE_Master' of https://github.com/guillalva06/moodle
This commit is contained in:
commit
d784584243
1 changed files with 5 additions and 1 deletions
|
@ -320,11 +320,15 @@ class MoodleQuickForm_filemanager extends HTML_QuickForm_element implements temp
|
|||
/**
|
||||
* Check that all files have the allowed type.
|
||||
*
|
||||
* @param array $value Draft item id with the uploaded files.
|
||||
* @param int $value Draft item id with the uploaded files.
|
||||
* @return string|null Validation error message or null.
|
||||
*/
|
||||
public function validateSubmitValue($value) {
|
||||
|
||||
if (empty($value)) {
|
||||
return;
|
||||
}
|
||||
|
||||
$filetypesutil = new \core_form\filetypes_util();
|
||||
$whitelist = $filetypesutil->normalize_file_types($this->_options['accepted_types']);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue