Don't hardcode the product name to Nextcloud but use the theming value

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2021-03-22 16:32:35 +01:00
parent 7f3a5de20c
commit f35d7adf7d
No known key found for this signature in database
GPG Key ID: 7076EA9751AACDDA
1 changed files with 6 additions and 1 deletions

View File

@ -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();
}