Merge branch 'wip-MDL-27676-master' of git://github.com/samhemelryk/moodle

This commit is contained in:
Eloy Lafuente (stronk7)
2011-06-09 00:36:00 +02:00
+1 -1
View File
@@ -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));
}
}