summaryrefslogtreecommitdiffstats
path: root/settings/Controller
diff options
context:
space:
mode:
Diffstat (limited to 'settings/Controller')
-rw-r--r--settings/Controller/UsersController.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/settings/Controller/UsersController.php b/settings/Controller/UsersController.php
index 3688cb7b7e2..c7b2c2537da 100644
--- a/settings/Controller/UsersController.php
+++ b/settings/Controller/UsersController.php
@@ -444,19 +444,17 @@ class UsersController extends Controller {
$link = $this->urlGenerator->getAbsoluteURL('/');
}
-
-
$emailTemplate = new EMailTemplate($this->defaults);
$emailTemplate->addHeader($this->urlGenerator->getAbsoluteURL($this->urlGenerator->imagePath('', 'logo-mail-header.png')));
- $displayname = $user->getDisplayName();
- if ($displayname === $username) {
+ $displayName = $user->getDisplayName();
+ if ($displayName === $username) {
$emailTemplate->addHeading($this->l10n->t('Welcome aboard'));
} else {
- $emailTemplate->addHeading($this->l10n->t('Welcome aboard %s', $displayname));
+ $emailTemplate->addHeading($this->l10n->t('Welcome aboard %s', [$displayName]));
}
- $emailTemplate->addBodyText($this->l10n->t('You have now an Nextcloud account, you can add, protect, and share your data.'));
+ $emailTemplate->addBodyText($this->l10n->t('You have now an %s account, you can add, protect, and share your data.', [$this->defaults->getName()]));
$emailTemplate->addBodyText($this->l10n->t('Your username is: %s', [$username]));
if ($generatedPassword) {
@@ -466,8 +464,10 @@ class UsersController extends Controller {
}
$emailTemplate->addBodyButtonGroup(
- $leftButtonText, $link,
- $this->l10n->t('Install Client'), 'https://nextcloud.com/install/#install-clients'
+ $leftButtonText,
+ $link,
+ $this->l10n->t('Install Client'),
+ 'https://nextcloud.com/install/#install-clients'
);
$emailTemplate->addFooter(