[TASK] Hide link text in text mails if duplicates target
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user