mirror of
https://github.com/moodle/moodle.git
synced 2025-03-18 22:50:19 +01:00
MDL-23229 fixed user profile picture regression regression
This commit is contained in:
parent
6cf93b6bc5
commit
f9817fc9b1
@ -406,7 +406,7 @@ if ($component === 'blog') {
|
||||
|
||||
$filename = array_pop($args);
|
||||
$filepath = $args ? '/'.implode('/', $args).'/' : '/';
|
||||
if (!$file = $fs->get_file($context->id, 'user', 'profile', 0, $filepath, $filename) or $file->is_directory()) {
|
||||
if (!$file = $fs->get_file($usercontext->id, 'user', 'profile', 0, $filepath, $filename) or $file->is_directory()) {
|
||||
send_file_not_found();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user