diff options
author | Julius Härtl <jus@bitgrid.net> | 2020-11-20 19:28:18 +0100 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2020-11-23 13:48:05 +0100 |
commit | a0c0918ce24f7bb7ea3fc58b0ca0f677ab0c3384 (patch) | |
tree | 2b4520942fce2c5db5febcb1d3892d8289f892de /apps/theming/lib | |
parent | 691409cdec28f13db8205e1d13d624e2e9fb483a (diff) | |
download | nextcloud-server-a0c0918ce24f7bb7ea3fc58b0ca0f677ab0c3384.tar.gz nextcloud-server-a0c0918ce24f7bb7ea3fc58b0ca0f677ab0c3384.zip |
Optimize chek if background is themed
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps/theming/lib')
-rw-r--r-- | apps/theming/lib/Util.php | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/apps/theming/lib/Util.php b/apps/theming/lib/Util.php index e757d100a1b..57a90b026e8 100644 --- a/apps/theming/lib/Util.php +++ b/apps/theming/lib/Util.php @@ -250,13 +250,6 @@ class Util { public function isBackgroundThemed() { $backgroundLogo = $this->config->getAppValue('theming', 'backgroundMime', ''); - - $backgroundExists = true; - try { - $this->appData->getFolder('images')->getFile('background'); - } catch (\Exception $e) { - $backgroundExists = false; - } - return $backgroundLogo && $backgroundLogo !== 'backgroundColor' && $backgroundExists; + return $backgroundLogo !== '' && $backgroundLogo !== 'backgroundColor'; } } |