Simplify lines substitution logic
Removed unnecessary check for structured HTML in default lines.
This commit is contained in:
parent
cf0642e53c
commit
ab53b28c1b
1 changed files with 0 additions and 3 deletions
|
|
@ -956,9 +956,6 @@ class FormMail extends Form
|
|||
// Add lines substitution key from each line
|
||||
$lines = '';
|
||||
$defaultlines = $arraydefaultmessage->content_lines;
|
||||
if (!empty($defaultlines) && dol_textishtml($defaultlines) && preg_match('/<\\s*(tr|td|th|table|tbody|thead|tfoot|ul|ol|li)\\b/i', $defaultlines)) {
|
||||
$linesisstructuredhtml = true;
|
||||
}
|
||||
if (isset($defaultlines)) {
|
||||
foreach ($this->substit_lines as $substit_line) {
|
||||
$lines .= make_substitutions($defaultlines, $substit_line)."\n";
|
||||
|
|
|
|||
Loading…
Reference in a new issue