diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2017-04-07 10:48:47 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2017-04-07 12:03:47 -0500 |
commit | 1be75e8db8f583476f1cd03498afd608fce6408d (patch) | |
tree | 18687794f38e2ece3d149f032fb2ef1c1116454c /settings/Controller/UsersController.php | |
parent | 0560e6991323c156e548792c5fb1f82791868d90 (diff) | |
download | nextcloud-server-1be75e8db8f583476f1cd03498afd608fce6408d.tar.gz nextcloud-server-1be75e8db8f583476f1cd03498afd608fce6408d.zip |
Fix tests
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
Diffstat (limited to 'settings/Controller/UsersController.php')
-rw-r--r-- | settings/Controller/UsersController.php | 16 |
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( |