From c30297eff33c9ab905a22c074b93358184b795b5 Mon Sep 17 00:00:00 2001 From: buddh4 Date: Thu, 11 May 2017 18:35:59 +0200 Subject: [PATCH] - Enh: Changed invite mail subject text --- protected/humhub/docs/CHANGELOG.md | 1 + protected/humhub/modules/user/models/Invite.php | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/protected/humhub/docs/CHANGELOG.md b/protected/humhub/docs/CHANGELOG.md index b046064d9b..72d10b901f 100644 --- a/protected/humhub/docs/CHANGELOG.md +++ b/protected/humhub/docs/CHANGELOG.md @@ -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) -------------------------------- diff --git a/protected/humhub/modules/user/models/Invite.php b/protected/humhub/modules/user/models/Invite.php index b619e52ba4..5bca045c09 100644 --- a/protected/humhub/modules/user/models/Invite.php +++ b/protected/humhub/modules/user/models/Invite.php @@ -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