forked from friendica/friendica
Always show 'Accounts' in the profile menu
This commit is contained in:
parent
608471d598
commit
f508cbb79d
1 changed files with 5 additions and 1 deletions
|
|
@ -318,8 +318,12 @@ class Nav
|
|||
$nav['messages']['outbox'] = ['message/sent', $this->l10n->t('Outbox'), '', $this->l10n->t('Outbox')];
|
||||
$nav['messages']['new'] = ['message/new', $this->l10n->t('New Message'), '', $this->l10n->t('New Message')];
|
||||
|
||||
$nav_accounts_name = $this->l10n->t('Accounts');
|
||||
$nav_accounts_description = $this->l10n->t('Manage other accounts, including groups and pages');
|
||||
if (User::hasIdentities($this->session->getSubManagedUserId() ?: $this->session->getLocalUserId())) {
|
||||
$nav['delegation'] = ['delegation', $this->l10n->t('Accounts'), '', $this->l10n->t('Manage other accounts, including groups and pages')];
|
||||
$nav['delegation'] = ['delegation', $nav_accounts_name, '', $nav_accounts_description];
|
||||
} else {
|
||||
$nav['delegation'] = ['settings/delegation', $nav_accounts_name, '', $nav_accounts_description];
|
||||
}
|
||||
|
||||
$nav['settings'] = ['settings', $this->l10n->t('Settings'), '', $this->l10n->t('Account settings')];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue