mirror of
https://github.com/moodle/moodle.git
synced 2025-03-18 22:50:19 +01:00
MDL-27676 Requests for a users profile pic that doesnt exist now redirect to the requested f1/f2 rather than just f1
This commit is contained in:
parent
a56c68e3f4
commit
82ee5a1f41
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user