MDL-23229 fixed user profile picture regression regression

This commit is contained in:
Petr Skoda 2010-07-12 16:51:32 +00:00
parent 6cf93b6bc5
commit f9817fc9b1

View File

@ -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();
}