[TASK] Hide link text in text mails if duplicates target
This commit is contained in:
parent
217aa02fc5
commit
c3d5d0ec63
@ -233,6 +233,11 @@ class MailUtility
|
||||
return preg_replace_callback(
|
||||
'/\[(\S*)\s(.*)\]/mU',
|
||||
function($matchesInner) {
|
||||
if (
|
||||
$matchesInner[2] == $matchesInner[1]
|
||||
) {
|
||||
return $matchesInner[1];
|
||||
}
|
||||
return $matchesInner[2]
|
||||
. ': '
|
||||
. $matchesInner[1];
|
||||
|
Loading…
x
Reference in New Issue
Block a user