Check if the theming app is loaded
Signed-off-by: Julius Haertl <jus@bitgrid.net>
This commit is contained in:
parent
e3b2832ee1
commit
086a5eb9d0
|
@ -158,7 +158,7 @@ class URLGenerator implements IURLGenerator {
|
||||||
|
|
||||||
// Check if the app is in the app folder
|
// Check if the app is in the app folder
|
||||||
$path = '';
|
$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()) {
|
if($themingEnabled && $image === "favicon.ico" && \OC::$server->getThemingDefaults()->shouldReplaceIcons()) {
|
||||||
$cacheBusterValue = $this->config->getAppValue('theming', 'cachebuster', '0');
|
$cacheBusterValue = $this->config->getAppValue('theming', 'cachebuster', '0');
|
||||||
if($app==="") { $app = "core"; }
|
if($app==="") { $app = "core"; }
|
||||||
|
|
Loading…
Reference in New Issue