mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 05:58:34 +01:00
MDL-69050 lang: Fix the variable name in the Essay question type
This commit is contained in:
parent
f278c69c83
commit
e2d54e6bd8
@ -111,10 +111,10 @@ class qtype_essay_question extends question_with_responses {
|
||||
if ($hasattachments) {
|
||||
// Check the filetypes.
|
||||
$filetypesutil = new \core_form\filetypes_util();
|
||||
$whitelist = $filetypesutil->normalize_file_types($this->filetypeslist);
|
||||
$allowlist = $filetypesutil->normalize_file_types($this->filetypeslist);
|
||||
$wrongfiles = array();
|
||||
foreach ($response['attachments']->get_files() as $file) {
|
||||
if (!$filetypesutil->is_allowed_file_type($file->get_filename(), $whitelist)) {
|
||||
if (!$filetypesutil->is_allowed_file_type($file->get_filename(), $allowlist)) {
|
||||
$wrongfiles[] = $file->get_filename();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user