- Enh: Changed invite mail subject text

This commit is contained in:
buddh4 2017-05-11 18:35:59 +02:00
parent fef17e2fa7
commit c30297eff3
2 changed files with 4 additions and 3 deletions

View File

@ -9,6 +9,7 @@ HumHub Change Log
- Enh: Added grunt `migrate-up` and `migrate-create` task
- Enh: Added profile field type `CheckboxList`
- Fix: Fixed `ui.addition` `MutationObserver`, only apply additions to inserted nodes.
- Enh: Changed invite mail subject text
1.2.0 (April 16, 2017)
--------------------------------

View File

@ -133,7 +133,7 @@ class Invite extends ActiveRecord
'registrationUrl' => $registrationUrl
]);
$mail->setTo($this->email);
$mail->setSubject(Yii::t('UserModule.views_mails_UserInviteSelf', 'Registration Link'));
$mail->setSubject(Yii::t('UserModule.views_mails_UserInviteSelf', 'Welcome to %appName%', ['%appName%' => Yii::$app->name]));
$mail->send();
} elseif ($this->source == self::SOURCE_INVITE && $this->space !== null) {
@ -152,7 +152,7 @@ class Invite extends ActiveRecord
'registrationUrl' => $registrationUrl
]);
$mail->setTo($this->email);
$mail->setSubject(Yii::t('UserModule.views_mails_UserInviteSpace', 'Invitation to join: {space}', ['space' => $this->space->name]));
$mail->setSubject(Yii::t('UserModule.views_mails_UserInviteSpace', 'You\'ve been invited to join {space} on {appName}', ['space' => $this->space->name, 'appName' => Yii::$app->name]));
$mail->send();
// Switch back to users language
@ -176,7 +176,7 @@ class Invite extends ActiveRecord
'registrationUrl' => $registrationUrl
]);
$mail->setTo($this->email);
$mail->setSubject(Yii::t('UserModule.invite', 'Invitation to join'));
$mail->setSubject(Yii::t('UserModule.invite', 'You\'ve been invited to join %appName%', ['%appName%' => Yii::$app->name]));
$mail->send();
// Switch back to users language