From e5f8f28d04df4ca046c80fa10275f0341d9ea25c Mon Sep 17 00:00:00 2001 From: Julius Haertl Date: Thu, 11 Aug 2016 23:27:26 +0200 Subject: [PATCH] Core: Load mimetype icons from theming app if available Signed-off-by: Julius Haertl --- core/js/mimetype.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/js/mimetype.js b/core/js/mimetype.js index 0d30da26c26..b830e673151 100644 --- a/core/js/mimetype.js +++ b/core/js/mimetype.js @@ -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) { -- 2.39.5