mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
"REPOSITORY/MDL-13766, return unknown type icon for repository api"
This commit is contained in:
parent
c32f2e5c64
commit
7a34d20d47
1 changed files with 4 additions and 1 deletions
|
@ -719,13 +719,16 @@ function mimeinfo($element, $filename) {
|
|||
if (file_exists($CFG->dirroot.'/pix/f/'.$filename)) {
|
||||
return $filename;
|
||||
} else {
|
||||
return $CFG->pixpath.'/f/unknown-32.png'; // By default
|
||||
return 'unknown-32.png';
|
||||
}
|
||||
} else {
|
||||
return $mimeinfo['xxx'][$element]; // By default
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if ($element == 'icon32') {
|
||||
return 'unknown-32.png';
|
||||
}
|
||||
return $mimeinfo['xxx'][$element]; // By default
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue