mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
"MDL-16910, fixed icons"
This commit is contained in:
parent
d2c98296e6
commit
bb54697b1b
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue