Skip to content

Commit

Permalink
fix(emailTemplate): use instance Name instead of Url in subject
Browse files Browse the repository at this point in the history
Signed-off-by: Git'Fellow <[email protected]>
  • Loading branch information
solracsf authored Feb 6, 2025
1 parent 9c3ef8e commit 86c351d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/settings/lib/Hooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ public function onChangeEmail(IUser $user, $oldMailAddress) {
'instanceUrl' => $instanceUrl,
]);

$template->setSubject($l->t('Email address for %1$s changed on %2$s', [$user->getDisplayName(), $instanceUrl]));
$template->setSubject($l->t('Email address for %1$s changed on %2$s', [$user->getDisplayName(), $instanceName]));

Check failure on line 162 in apps/settings/lib/Hooks.php

View workflow job for this annotation

GitHub Actions / static-code-analysis

UndefinedVariable

apps/settings/lib/Hooks.php:162:100: UndefinedVariable: Cannot find referenced variable $instanceName (see https://psalm.dev/024)
$template->addHeader();
$template->addHeading($l->t('Email address changed for %s', [$user->getDisplayName()]), false);
$template->addBodyText($text . ' ' . $l->t('If you did not request this, please contact an administrator.'));
Expand Down

0 comments on commit 86c351d

Please sign in to comment.