From 086a5eb9d00ee5901d331b9081f83317f7d78612 Mon Sep 17 00:00:00 2001 From: Julius Haertl Date: Fri, 9 Dec 2016 12:52:17 +0100 Subject: [PATCH] Check if the theming app is loaded Signed-off-by: Julius Haertl --- lib/private/URLGenerator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/private/URLGenerator.php b/lib/private/URLGenerator.php index c6f1ebd459..d954153ab8 100644 --- a/lib/private/URLGenerator.php +++ b/lib/private/URLGenerator.php @@ -158,7 +158,7 @@ class URLGenerator implements IURLGenerator { // Check if the app is in the app folder $path = ''; - $themingEnabled = $this->config->getSystemValue('installed', false) && \OCP\App::isEnabled('theming'); + $themingEnabled = $this->config->getSystemValue('installed', false) && \OCP\App::isEnabled('theming') && \OC_App::isAppLoaded('theming'); if($themingEnabled && $image === "favicon.ico" && \OC::$server->getThemingDefaults()->shouldReplaceIcons()) { $cacheBusterValue = $this->config->getAppValue('theming', 'cachebuster', '0'); if($app==="") { $app = "core"; }