1
0
mirror of https://github.com/moodle/moodle.git synced 2025-04-24 09:55:33 +02:00

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

This commit is contained in:
Jun Pataleta 2021-08-13 17:03:59 +08:00
parent 036800d99d
commit 6a82cbc6ab
3 changed files with 11 additions and 4 deletions

@ -514,10 +514,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 }}