From f35d7adf7df8502dc05a7f3aa297b7ac9526e2c4 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Mon, 22 Mar 2021 16:32:35 +0100 Subject: Don't hardcode the product name to Nextcloud but use the theming value Signed-off-by: Joas Schilling --- lib/base.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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(); } -- cgit v1.2.3