From: Julius Härtl Date: Wed, 5 Jun 2019 08:36:27 +0000 (+0200) Subject: Properly theme folder icons that are accessed though imagePath X-Git-Tag: v17.0.0beta1~318^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=cfed233f4781f17ba6dbdd90a6a62067b431e695;p=nextcloud-server.git Properly theme folder icons that are accessed though imagePath Signed-off-by: Julius Härtl --- 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; }