Merge pull request #22742 from nextcloud/backport/22589/stable19

[stable19] Allow additional personal settings via normal registration
This commit is contained in:
Morris Jobke 2020-09-09 15:32:08 +02:00 committed by GitHub
commit b6c04b35c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -261,7 +261,8 @@ class Manager implements IManager {
$sections = []; $sections = [];
$legacyForms = \OC_App::getForms('personal'); $legacyForms = \OC_App::getForms('personal');
if (!empty($legacyForms) && $this->hasLegacyPersonalSettingsToRender($legacyForms)) { if ((!empty($legacyForms) && $this->hasLegacyPersonalSettingsToRender($legacyForms))
|| count($this->getPersonalSettings('additional')) > 1) {
$sections[98] = [new Section('additional', $this->l->t('Additional settings'), 0, $this->url->imagePath('core', 'actions/settings-dark.svg'))]; $sections[98] = [new Section('additional', $this->l->t('Additional settings'), 0, $this->url->imagePath('core', 'actions/settings-dark.svg'))];
} }