aboutsummaryrefslogtreecommitdiffstats
path: root/settings/Hooks.php
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2017-07-19 15:37:03 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2017-08-01 08:20:13 +0200
commite1f52fc9019856d52466d9b796ce738e31f1c4ca (patch)
tree489387720f34360dc58e9f29fb800e1e2af26145 /settings/Hooks.php
parent456392e627de3aad19c8188974a4972cf4e274db (diff)
downloadnextcloud-server-e1f52fc9019856d52466d9b796ce738e31f1c4ca.tar.gz
nextcloud-server-e1f52fc9019856d52466d9b796ce738e31f1c4ca.zip
Stricter phan config fixes
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
Diffstat (limited to 'settings/Hooks.php')
-rw-r--r--settings/Hooks.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/settings/Hooks.php b/settings/Hooks.php
index 2cc5ce30bbe..115f62a9a2a 100644
--- a/settings/Hooks.php
+++ b/settings/Hooks.php
@@ -119,7 +119,7 @@ class Hooks {
if ($user->getEMailAddress() !== null) {
$template = $this->mailer->createEMailTemplate();
$template->addHeader();
- $template->addHeading($this->l->t('Password changed for %s', $user->getDisplayName()), false);
+ $template->addHeading($this->l->t('Password changed for %s', [$user->getDisplayName()]), false);
$template->addBodyText($text . ' ' . $this->l->t('If you did not request this, please contact an administrator.'));
$template->addFooter();
@@ -185,10 +185,10 @@ class Hooks {
if ($oldMailAddress !== null) {
$template = $this->mailer->createEMailTemplate();
$template->addHeader();
- $template->addHeading($this->l->t('Email address changed for %s', $user->getDisplayName()), false);
+ $template->addHeading($this->l->t('Email address changed for %s', [$user->getDisplayName()]), false);
$template->addBodyText($text . ' ' . $this->l->t('If you did not request this, please contact an administrator.'));
if ($user->getEMailAddress()) {
- $template->addBodyText($this->l->t('The new email address is %s', $user->getEMailAddress()));
+ $template->addBodyText($this->l->t('The new email address is %s', [$user->getEMailAddress()]));
}
$template->addFooter();