diff options
author | Joas Schilling <coding@schilljs.com> | 2021-03-22 16:32:35 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2021-03-22 16:32:35 +0100 |
commit | f35d7adf7df8502dc05a7f3aa297b7ac9526e2c4 (patch) | |
tree | e0cb0a02425044f7a7df82db409f6df20f87b460 /lib/base.php | |
parent | 7f3a5de20cacf86b42d80846cc1407c8b8fdfe8b (diff) | |
download | nextcloud-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.php | 7 |
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(); } |