Skip to content

Commit

Permalink
MDL-69050 lang: Fix the variable name in the Essay question type
Browse files Browse the repository at this point in the history
  • Loading branch information
mudrd8mz committed Sep 24, 2020
1 parent f278c69 commit e2d54e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions question/type/essay/question.php
Expand Up @@ -111,10 +111,10 @@ public function is_complete_response(array $response) {
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();
}
}
Expand Down

0 comments on commit e2d54e6

Please sign in to comment.