Core: Load mimetype icons from theming app if available
Signed-off-by: Julius Haertl <jus@bitgrid.net>
This commit is contained in:
parent
b3eab7db01
commit
e5f8f28d04
|
@ -91,6 +91,11 @@ OC.MimeType = {
|
|||
path += icon;
|
||||
}
|
||||
}
|
||||
if(OCA.Theming) {
|
||||
path = OC.generateUrl('/apps/theming/image/core/filetypes/');
|
||||
path += OC.MimeType._getFile(mimeType, OC.MimeTypeList.files);
|
||||
gotIcon = true;
|
||||
}
|
||||
|
||||
// If we do not yet have an icon fall back to the default
|
||||
if (gotIcon === null) {
|
||||
|
|
Loading…
Reference in New Issue