Quellcode durchsuchen

If text is disabled in PM notifications let's send a link to read the message too - still buggy though

Signed-off-by: emanuele <[email protected]>
emanuele vor 12 Jahren
Ursprung
Commit
8b6b964964
2 geänderte Dateien mit 7 neuen und 0 gelöschten Zeilen
  1. 1 0
      Sources/Subs-Post.php
  2. 6 0
      Themes/default/languages/EmailTemplates.english.php

+ 1 - 0
Sources/Subs-Post.php

@@ -1138,6 +1138,7 @@ function sendpm($recipients, $subject, $message, $store_outbox = false, $from =
 		'SUBJECT' => $subject,
 		'MESSAGE' => $message,
 		'SENDER' => un_htmlspecialchars($from['name']),
+		'READLINK' => $scripturl . '?action=pm;pmsg=' . $id_pm,
 		'REPLYLINK' => $scripturl . '?action=pm;sa=send;f=inbox;pmsg=' . $id_pm . ';quote;u=' . $from['id'],
 		'TOLIST' => implode(', ', $to_names),
 	);

+ 6 - 0
Themes/default/languages/EmailTemplates.english.php

@@ -926,6 +926,7 @@ The following error occurred when processing a paid subscription
 	@additional_params: new_pm
 		SUBJECT: The personal message subject.
 		SENDER:  The user name for the member sending the personal message.
+		READLINK:  The link to directly access the read page.
 		REPLYLINK:  The link to directly access the reply page.
 	@description: A notification email sent to the receivers of a personal message
 */
@@ -934,6 +935,8 @@ $txt['new_pm_body'] = 'You have just been sent a personal message by {SENDER} on
 
 IMPORTANT: Remember, this is just a notification. Please do not reply to this email.
 
+Read this Personal Message here: {READLINK}
+
 Reply to this Personal Message here: {REPLYLINK}';
 
 /**
@@ -959,6 +962,7 @@ Reply to this Personal Message here: {REPLYLINK}';
 	@additional_params: new_pm_tolist
 		SUBJECT: The personal message subject.
 		SENDER:  The user name for the member sending the personal message.
+		READLINK:  The link to directly access the read page.
 		REPLYLINK:  The link to directly access the reply page.
 		TOLIST:  The list of users that will receive the personal message.
 	@description: A notification email sent to the receivers of a personal message
@@ -968,6 +972,8 @@ $txt['new_pm_tolist_body'] = 'You and {TOLIST} have just been sent a personal me
 
 IMPORTANT: Remember, this is just a notification. Please do not reply to this email.
 
+Read this Personal Message here: {READLINK}
+
 Reply to this Personal Message (to the sender only) here: {REPLYLINK}';
 
 /**