MDL-18763 Fixed up typo in comments of new pic size

This commit is contained in:
Sam Hemelryk 2012-05-28 16:52:53 +12:00
parent a2aba3f612
commit c67b08828c

View file

@ -3628,7 +3628,7 @@ function file_pluginfile($relativepath, $forcedownload, $preview = null) {
if (!$file = $fs->get_file($context->id, 'user', 'icon', 0, '/', $filename.'.png')) { if (!$file = $fs->get_file($context->id, 'user', 'icon', 0, '/', $filename.'.png')) {
if (!$file = $fs->get_file($context->id, 'user', 'icon', 0, '/', $filename.'.jpg')) { if (!$file = $fs->get_file($context->id, 'user', 'icon', 0, '/', $filename.'.jpg')) {
if ($filename === 'f3') { if ($filename === 'f3') {
// f3 400x400px was introduced in 2.3, there might be only the smaller version. // f3 512x512px was introduced in 2.3, there might be only the smaller version.
if (!$file = $fs->get_file($context->id, 'user', 'icon', 0, '/', 'f1.png')) { if (!$file = $fs->get_file($context->id, 'user', 'icon', 0, '/', 'f1.png')) {
$file = $fs->get_file($context->id, 'user', 'icon', 0, '/', 'f1.jpg'); $file = $fs->get_file($context->id, 'user', 'icon', 0, '/', 'f1.jpg');
} }