[TASK] Hide link text in text mails if duplicates target

This commit is contained in:
Philipp Dieter 2021-12-19 17:40:40 +01:00
parent 217aa02fc5
commit c3d5d0ec63

View File

@ -233,6 +233,11 @@ class MailUtility
return preg_replace_callback( return preg_replace_callback(
'/\[(\S*)\s(.*)\]/mU', '/\[(\S*)\s(.*)\]/mU',
function($matchesInner) { function($matchesInner) {
if (
$matchesInner[2] == $matchesInner[1]
) {
return $matchesInner[1];
}
return $matchesInner[2] return $matchesInner[2]
. ': ' . ': '
. $matchesInner[1]; . $matchesInner[1];