Permalink
Browse files

MDL-27676 Requests for a users profile pic that doesnt exist now redi…

…rect to the requested f1/f2 rather than just f1
  • Loading branch information...
1 parent a56c68e commit 82ee5a1f4161ddd41ef9cdc06dcdd35ad4f90167 Sam Hemelryk committed Jun 2, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 pluginfile.php
View
@@ -305,7 +305,7 @@
}
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));
}
}

0 comments on commit 82ee5a1

Please sign in to comment.