Skip to content

Commit b313355

Browse files
author
Phil E. Taylor
authored
[4] Replace placeholders in file names of attachments in Mail Templates (#34321)
1 parent 6aef754 commit b313355

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

libraries/src/Mail/MailTemplate.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -495,6 +495,10 @@ protected function getAttachmentName(string $file, string $name): string
495495
return '';
496496
}
497497

498+
// Replace any placeholders.
499+
$name = $this->replaceTags($name, $this->data);
500+
501+
// Get the file extension.
498502
$ext = File::getExt($file);
499503

500504
// Strip off extension from $name and append extension of $file, if any

0 commit comments

Comments
 (0)