Skip to content

Commit

Permalink
MDL-23229 fixed user profile picture regression regression
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed Jul 12, 2010
1 parent 6cf93b6 commit f9817fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pluginfile.php
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@

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

Expand Down

0 comments on commit f9817fc

Please sign in to comment.