Skip to content
Permalink
Browse files

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

  • Loading branch information...
sarjona committed Nov 21, 2017
1 parent 20cb5f4 commit c12caea3d40de650e79e92bc99bb15ee3de37561
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/filelib.php
@@ -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')) {

0 comments on commit c12caea

Please sign in to comment.
You can’t perform that action at this time.