]> source.dussan.org Git - nextcloud-server.git/commitdiff
Properly theme folder icons that are accessed though imagePath 15875/head
authorJulius Härtl <jus@bitgrid.net>
Wed, 5 Jun 2019 08:36:27 +0000 (10:36 +0200)
committerJulius Härtl <jus@bitgrid.net>
Tue, 11 Jun 2019 15:38:17 +0000 (17:38 +0200)
Signed-off-by: Julius Härtl <jus@bitgrid.net>
apps/theming/lib/ThemingDefaults.php

index 2305f5708885431f45042793290d47a64ed5f3bf..6e93515eb5d43605bf4ffbe3d05e19cb8ed3c040 100644 (file)
@@ -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;
        }