mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 16:26:59 -04:00
Hide client link in welcome mail if an empty customclient_desktop config is set
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
27e43d810f
commit
abfb72378f
1 changed files with 16 additions and 6 deletions
|
|
@ -143,12 +143,22 @@ class NewUserMailHelper {
|
|||
} else {
|
||||
$leftButtonText = $l10n->t('Go to %s', [$this->themingDefaults->getName()]);
|
||||
}
|
||||
$emailTemplate->addBodyButtonGroup(
|
||||
$leftButtonText,
|
||||
$link,
|
||||
$l10n->t('Install Client'),
|
||||
$this->config->getSystemValue('customclient_desktop', 'https://nextcloud.com/install/#install-clients')
|
||||
);
|
||||
|
||||
$clientDownload = $this->config->getSystemValue('customclient_desktop', 'https://nextcloud.com/install/#install-clients');
|
||||
if ($clientDownload === '') {
|
||||
$emailTemplate->addBodyButton(
|
||||
$leftButtonText,
|
||||
$link
|
||||
);
|
||||
} else {
|
||||
$emailTemplate->addBodyButtonGroup(
|
||||
$leftButtonText,
|
||||
$link,
|
||||
$l10n->t('Install Client'),
|
||||
$clientDownload
|
||||
);
|
||||
}
|
||||
|
||||
$emailTemplate->addFooter();
|
||||
|
||||
return $emailTemplate;
|
||||
|
|
|
|||
Loading…
Reference in a new issue