diff options
author | Julius Härtl <jus@bitgrid.net> | 2019-06-05 10:36:27 +0200 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2019-06-11 17:38:17 +0200 |
commit | cfed233f4781f17ba6dbdd90a6a62067b431e695 (patch) | |
tree | 35c3f1457b9f471f7e5e4ef208a67624ec8f392f /apps | |
parent | a53ebdb53d966dc3b3bef9a096d8c2387083413d (diff) | |
download | nextcloud-server-cfed233f4781f17ba6dbdd90a6a62067b431e695.tar.gz nextcloud-server-cfed233f4781f17ba6dbdd90a6a62067b431e695.zip |
Properly theme folder icons that are accessed though imagePath
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/theming/lib/ThemingDefaults.php | 3 |
1 files changed, 3 insertions, 0 deletions
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; } |