mirror of
https://github.com/nextcloud/server.git
synced 2026-02-20 00:12:30 -05:00
Fixes Psalm error.
Signed-off-by: Faraz Samapoor <fsa@adlas.at>
This commit is contained in:
parent
ed972439fc
commit
a1acacf032
1 changed files with 1 additions and 4 deletions
|
|
@ -120,6 +120,7 @@ class AccountManager implements IAccountManager {
|
|||
private ICrypto $crypto,
|
||||
) {
|
||||
$this->internalCache = new CappedMemoryCache();
|
||||
$this->l10n = $factory->get('core');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -415,10 +416,6 @@ class AccountManager implements IAccountManager {
|
|||
'link' => $link,
|
||||
]);
|
||||
|
||||
if (!$this->l10n) {
|
||||
$this->l10n = $this->factory->get('core');
|
||||
}
|
||||
|
||||
$emailTemplate->setSubject($this->l10n->t('%s email verification', [$this->defaults->getName()]));
|
||||
$emailTemplate->addHeader();
|
||||
$emailTemplate->addHeading($this->l10n->t('Email verification'));
|
||||
|
|
|
|||
Loading…
Reference in a new issue