]> source.dussan.org Git - nextcloud-server.git/commitdiff
Do not trigger appconfig queries when we are not yet installed 2212/head
authorRoeland Jago Douma <roeland@famdouma.nl>
Mon, 21 Nov 2016 12:13:53 +0000 (13:13 +0100)
committerRoeland Jago Douma <roeland@famdouma.nl>
Mon, 21 Nov 2016 12:13:53 +0000 (13:13 +0100)
Fixes #2209

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
lib/private/URLGenerator.php

index f041487ea885a89fb90ee26c74355815e065965b..c6f1ebd4594c1fdf1f9048763392145ac37bf131 100644 (file)
@@ -158,11 +158,12 @@ class URLGenerator implements IURLGenerator {
 
                // Check if the app is in the app folder
                $path = '';
-               if(\OCP\App::isEnabled('theming') && $image === "favicon.ico" && \OC::$server->getThemingDefaults()->shouldReplaceIcons()) {
+               $themingEnabled = $this->config->getSystemValue('installed', false) && \OCP\App::isEnabled('theming');
+               if($themingEnabled && $image === "favicon.ico" && \OC::$server->getThemingDefaults()->shouldReplaceIcons()) {
                        $cacheBusterValue = $this->config->getAppValue('theming', 'cachebuster', '0');
                        if($app==="") { $app = "core"; }
                        $path = $this->linkToRoute('theming.Icon.getFavicon', [ 'app' => $app ]) . '?v='. $cacheBusterValue;
-               } elseif(\OCP\App::isEnabled('theming') && $image === "favicon-touch.png" && \OC::$server->getThemingDefaults()->shouldReplaceIcons()) {
+               } elseif($themingEnabled && $image === "favicon-touch.png" && \OC::$server->getThemingDefaults()->shouldReplaceIcons()) {
                        $cacheBusterValue = $this->config->getAppValue('theming', 'cachebuster', '0');
                        if($app==="") { $app = "core"; }
                        $path = $this->linkToRoute('theming.Icon.getTouchIcon', [ 'app' => $app ]) . '?v='. $cacheBusterValue;