mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
MDL-73013 filelib: Fix code lint
This commit is contained in:
parent
0b305d9330
commit
5aae67880d
@ -4584,7 +4584,7 @@ function file_pluginfile($relativepath, $forcedownload, $preview = null, $offlin
|
||||
// Retrieve file from storage, and serve.
|
||||
$filename = array_pop($args);
|
||||
$filepath = $args ? '/' . implode('/', $args) .'/' : '/';
|
||||
$file = $fs->get_file($context->id, $component, $filearea, $eventid, $filepath, $filename)''
|
||||
$file = $fs->get_file($context->id, $component, $filearea, $eventid, $filepath, $filename);
|
||||
if (!$file || $file->is_directory()) {
|
||||
send_file_not_found();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user