From cfed233f4781f17ba6dbdd90a6a62067b431e695 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Julius=20H=C3=A4rtl?= Date: Wed, 5 Jun 2019 10:36:27 +0200 Subject: [PATCH] Properly theme folder icons that are accessed though imagePath MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- apps/theming/lib/ThemingDefaults.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/theming/lib/ThemingDefaults.php b/apps/theming/lib/ThemingDefaults.php index 2305f570888..6e93515eb5d 100644 --- a/apps/theming/lib/ThemingDefaults.php +++ b/apps/theming/lib/ThemingDefaults.php @@ -349,6 +349,9 @@ class ThemingDefaults extends \OC_Defaults { } catch (AppPathNotFoundException $e) {} return $this->urlGenerator->linkToRoute('theming.Theming.getManifest') . '?v=' . $cacheBusterValue; } + if (strpos($image, 'filetypes/') === 0) { + return $this->urlGenerator->linkToRoute('theming.Icon.getThemedIcon', ['app' => $app, 'image' => $image]); + } return false; } -- 2.39.5