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

This commit is contained in:
Sara Arjona
2017-11-24 11:53:47 +01:00
parent c099963697
commit cab3b03540
+1 -1
View File
@@ -4032,7 +4032,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')) {