aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJulien Veyssier <eneiluj@posteo.net>2022-01-20 12:27:29 +0100
committerJulien Veyssier <eneiluj@posteo.net>2022-01-20 15:11:16 +0100
commitc0b6b78674565701df298332fc9541cc217aa72a (patch)
tree45b31da74c96301402eed1c34b711a1d679cd90d /lib
parenta9b098eed59f594f9c6531c172617cd740de167a (diff)
downloadnextcloud-server-c0b6b78674565701df298332fc9541cc217aa72a.tar.gz
nextcloud-server-c0b6b78674565701df298332fc9541cc217aa72a.zip
allow changing the top-left logo link target in system config
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
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);