aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJulien Veyssier <eneiluj@posteo.net>2022-01-20 18:02:37 +0100
committerGitHub <noreply@github.com>2022-01-20 18:02:37 +0100
commit7f7980f35cdd40d113083d8cceb95e6c7613b004 (patch)
tree28c2a0392747c38ac2902f694309e7ea5bb208e0 /lib
parentff809410f8e9d7ea313b0d3fc8e47460da40b8ef (diff)
parentc0b6b78674565701df298332fc9541cc217aa72a (diff)
downloadnextcloud-server-7f7980f35cdd40d113083d8cceb95e6c7613b004.tar.gz
nextcloud-server-7f7980f35cdd40d113083d8cceb95e6c7613b004.zip
Merge pull request #30770 from nextcloud/enh/logo-link-target-config
Allow changing the top-left logo link target in config.php
Diffstat (limited to 'lib')
-rw-r--r--lib/private/TemplateLayout.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/private/TemplateLayout.php b/lib/private/TemplateLayout.php
index 9cfc1aec6dd..d7a86ff92bf 100644
--- a/lib/private/TemplateLayout.php
+++ b/lib/private/TemplateLayout.php
@@ -98,6 +98,10 @@ class TemplateLayout extends \OC_Template {
$this->initialState->provideInitialState('unified-search', 'limit-default', SearchQuery::LIMIT_DEFAULT);
Util::addScript('core', 'unified-search', 'core');
+ // set logo link target
+ $logoUrl = $this->config->getSystemValueString('logo_url', '');
+ $this->assign('logoUrl', $logoUrl);
+
// Add navigation entry
$this->assign('application', '');
$this->assign('appid', $appId);