Core: Load mimetype icons from theming app if available

Signed-off-by: Julius Haertl <jus@bitgrid.net>
This commit is contained in:
Julius Haertl 2016-08-11 23:27:26 +02:00
parent b3eab7db01
commit e5f8f28d04
No known key found for this signature in database
GPG Key ID: 4C614C6ED2CDE6DF
1 changed files with 5 additions and 0 deletions

View File

@ -91,6 +91,11 @@ OC.MimeType = {
path += icon; 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 we do not yet have an icon fall back to the default
if (gotIcon === null) { if (gotIcon === null) {