aboutsummaryrefslogtreecommitdiffstats
path: root/lib/base.php
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2021-03-22 16:32:35 +0100
committerJoas Schilling <coding@schilljs.com>2021-03-22 16:32:35 +0100
commitf35d7adf7df8502dc05a7f3aa297b7ac9526e2c4 (patch)
treee0cb0a02425044f7a7df82db409f6df20f87b460 /lib/base.php
parent7f3a5de20cacf86b42d80846cc1407c8b8fdfe8b (diff)
downloadnextcloud-server-f35d7adf7df8502dc05a7f3aa297b7ac9526e2c4.tar.gz
nextcloud-server-f35d7adf7df8502dc05a7f3aa297b7ac9526e2c4.zip
Don't hardcode the product name to Nextcloud but use the theming value
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/base.php')
-rw-r--r--lib/base.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/base.php b/lib/base.php
index c42f427ca40..7e3f6d9567b 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -392,7 +392,12 @@ class OC {
$tmpl->assign('appsToUpgrade', $appManager->getAppsNeedingUpgrade($ocVersion));
$tmpl->assign('incompatibleAppsList', $incompatibleApps);
- $tmpl->assign('productName', 'Nextcloud'); // for now
+ try {
+ $defaults = new \OC_Defaults();
+ $tmpl->assign('productName', $defaults->getName());
+ } catch (Throwable $error) {
+ $tmpl->assign('productName', 'Nextcloud');
+ }
$tmpl->assign('oldTheme', $oldTheme);
$tmpl->printPage();
}