Commit 6820f36b authored by Sara Arjona's avatar Sara Arjona
Browse files

MDL-57569 core_files: Fix to let show generated f3 image

parent 5bde2c2b
......@@ -4088,7 +4088,7 @@ function file_pluginfile($relativepath, $forcedownload, $preview = null, $offlin
$filename = array_pop($args);
if ($filearea === 'badgeimage') {
if ($filename !== 'f1' && $filename !== 'f2') {
if ($filename !== 'f1' && $filename !== 'f2' && $filename !== 'f3') {
send_file_not_found();
}
if (!$file = $fs->get_file($context->id, 'badges', 'badgeimage', $badge->id, '/', $filename.'.png')) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment