From f9817fc9b194820f41cc0d29068dd23c8aefce29 Mon Sep 17 00:00:00 2001 From: Petr Skoda Date: Mon, 12 Jul 2010 16:51:32 +0000 Subject: [PATCH] MDL-23229 fixed user profile picture regression regression --- pluginfile.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pluginfile.php b/pluginfile.php index 40ac9f91faf..5e913978325 100644 --- a/pluginfile.php +++ b/pluginfile.php @@ -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(); }