From 82ee5a1f4161ddd41ef9cdc06dcdd35ad4f90167 Mon Sep 17 00:00:00 2001 From: Sam Hemelryk Date: Thu, 2 Jun 2011 10:24:20 +0800 Subject: [PATCH] MDL-27676 Requests for a users profile pic that doesnt exist now redirect to the requested f1/f2 rather than just f1 --- pluginfile.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pluginfile.php b/pluginfile.php index 0ab84289706..e749921586b 100644 --- a/pluginfile.php +++ b/pluginfile.php @@ -305,7 +305,7 @@ if ($component === 'blog') { } if (!$file = $fs->get_file($context->id, 'user', 'icon', 0, '/', $filename.'/.png')) { if (!$file = $fs->get_file($context->id, 'user', 'icon', 0, '/', $filename.'/.jpg')) { - redirect($OUTPUT->pix_url('u/f1')); + redirect($OUTPUT->pix_url('u/'.$filename)); } }