summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@users.noreply.github.com>2019-06-11 19:16:04 +0200
committerGitHub <noreply@github.com>2019-06-11 19:16:04 +0200
commit2cb0b9e56e634970f0490a02e8676761a93cbb52 (patch)
tree262df93cd875a30bd9e9f16bed97503c7f7801ed
parent6b7eb26f397d4f9c254439e824f03c321b7e821b (diff)
parentcfed233f4781f17ba6dbdd90a6a62067b431e695 (diff)
downloadnextcloud-server-2cb0b9e56e634970f0490a02e8676761a93cbb52.tar.gz
nextcloud-server-2cb0b9e56e634970f0490a02e8676761a93cbb52.zip
Properly theme folder icons that are accessed though imagePath (#15875)
Properly theme folder icons that are accessed though imagePath
-rw-r--r--apps/theming/lib/ThemingDefaults.php3
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;
}