"MDL-16910, fixed icons"

This commit is contained in:
Dongsheng Cai 2009-11-18 07:23:28 +00:00
parent d2c98296e6
commit bb54697b1b

View file

@ -1203,11 +1203,11 @@ function mimeinfo($element, $filename) {
} else {
$filename = 'unknown';
}
$filename .= '-32.png';
if (file_exists($CFG->dirroot.'/pix/f/'.$filename)) {
$filename .= '-32';
if (file_exists($CFG->dirroot.'/pix/f/'.$filename.'.png')) {
return $filename;
} else {
return 'unknown-32.png';
return 'unknown-32';
}
} else {
return $mimeinfo['xxx'][$element]; // By default