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:
parent
7f3a5de20c
commit
f35d7adf7d
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue