MDL-69855 mod_forum: Don't show reply link in email for private replies

This commit is contained in:
Jun Pataleta
2021-08-16 17:46:25 +08:00
parent fa2e1ed7ec
commit 0548156a3f
3 changed files with 11 additions and 4 deletions
+2
View File
@@ -510,10 +510,12 @@ $string['postbymailsuccess'] = 'Your reply "{$a->subject}" was successfully post
$string['postbymailsuccess_html'] = 'Your reply <a href="{$a->discussionurl}">{$a->subject}</a> was successfully posted.';
$string['postbyuser'] = '{$a->post} by {$a->user}';
$string['postincontext'] = 'See this post in context';
$string['postmailinfo'] = 'This is a copy of a message posted in {$a}.';
$string['postmailinfolink'] = 'This is a copy of a message posted in {$a->coursename}.
To reply click on this link: {$a->replylink}';
$string['postmailnow'] = '<p>This post will be mailed out immediately to all forum subscribers.</p>';
$string['postmailreply'] = 'To reply click on this link: {$a}';
$string['postmailsubject'] = '{$a->courseshortname}: {$a->subject}';
$string['postrating1'] = 'Mostly separate knowing';
$string['postrating2'] = 'Separate and connected';
@@ -123,13 +123,17 @@
{{# str }} parent, forum {{/ str }}
</a>
{{# canreply }}
{{^ isprivatereply }}
|
{{/ isprivatereply }}
{{/ canreply }}
{{/ firstpost }}
{{# canreply }}
{{^ isprivatereply }}
<a target="_blank" href="{{{ replylink }}}">
{{# str }} reply, forum {{/ str }}
</a>
{{/ isprivatereply }}
{{/ canreply }}
</div>
@@ -58,11 +58,12 @@
{{{ attachments }}}
---------------------------------------------------------------------
{{# str }} postmailinfo, forum, {{{ coursename }}} {{/ str }}
{{# canreply }}
{{# str }} postmailinfolink, forum, {
"coursename": {{# quote }}{{{ coursename }}}{{/ quote }},
"replylink": {{# quote }}{{ replylink }}{{/ quote }}
} {{/ str }}
{{^ isprivatereply }}
{{# str }} postmailreply, forum, {{{ replylink }}} {{/ str }}
{{/ isprivatereply }}
{{/ canreply }}
{{# unsubscribeforumlink }}
{{# str }} unsubscribelink, forum, {{{ unsubscribeforumlink }}} {{/ str }}