if (!empty($messages->error)) {
foreach ($messages->error as $error) {
// We have to apply clean_param because warningcode is a PARAM_ALPHANUM.
- // And H5P has some error code like 'not-in-whitelist'.
+ // And H5P has some error code like 'total-size-too-large'.
$warnings[] = [
'item' => $url,
'warningcode' => clean_param($error->code, PARAM_ALPHANUM),
}
/**
- * Get file extension whitelist.
+ * Get allowed file extension list.
* Implements getWhitelist.
*
* The default extension list is part of h5p, but admins should be allowed to modify it.