diff options
author | Julien Veyssier <eneiluj@posteo.net> | 2020-10-20 12:36:41 +0200 |
---|---|---|
committer | npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com> | 2020-11-13 06:51:26 +0000 |
commit | f5ef2d7d5897bb490f2a10792760f809a68e4c00 (patch) | |
tree | 04dcf6c646b10405a799e6d793137052fd848e02 /apps/theming/lib/ImageManager.php | |
parent | 35be4fdb019da658a824f41dc4bf0f415c032cb8 (diff) | |
download | nextcloud-server-f5ef2d7d5897bb490f2a10792760f809a68e4c00.tar.gz nextcloud-server-f5ef2d7d5897bb490f2a10792760f809a68e4c00.zip |
override default dashboard background with theming one
fix getAppValue default value in theming app
fix cacheBuster value injection
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
Signed-off-by: npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>
Diffstat (limited to 'apps/theming/lib/ImageManager.php')
-rw-r--r-- | apps/theming/lib/ImageManager.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/theming/lib/ImageManager.php b/apps/theming/lib/ImageManager.php index 469480d1e10..d3b5f6130e7 100644 --- a/apps/theming/lib/ImageManager.php +++ b/apps/theming/lib/ImageManager.php @@ -101,9 +101,9 @@ class ImageManager { * @throws NotPermittedException */ public function getImage(string $key, bool $useSvg = true): ISimpleFile { - $logo = $this->config->getAppValue('theming', $key . 'Mime', false); + $logo = $this->config->getAppValue('theming', $key . 'Mime', ''); $folder = $this->appData->getFolder('images'); - if ($logo === false || !$folder->fileExists($key)) { + if ($logo === '' || !$folder->fileExists($key)) { throw new NotFoundException(); } if (!$useSvg && $this->shouldReplaceIcons()) { |