Commit 237f35f5 authored by Marius Cramer's avatar Marius Cramer
Browse files

Fixed: FS#3462 - Placeholder {salutation} is not replaced in welcome emails

parent 4721d9da
...@@ -352,8 +352,8 @@ class page_action extends tform_actions { ...@@ -352,8 +352,8 @@ class page_action extends tform_actions {
$subject = str_replace('{password}', $this->dataRecord['password'], $subject); $subject = str_replace('{password}', $this->dataRecord['password'], $subject);
break; break;
case 'gender': case 'gender':
$message = str_replace('{salutation}', $wb['gender_'.$val.'_txt'], $message); $message = str_replace('{salutation}', $app->tform->lng('gender_'.$val.'_txt'), $message);
$subject = str_replace('{salutation}', $wb['gender_'.$val.'_txt'], $subject); $subject = str_replace('{salutation}', $app->tform->lng('gender_'.$val.'_txt'), $subject);
break; break;
default: default:
$message = str_replace('{'.$key.'}', $val, $message); $message = str_replace('{'.$key.'}', $val, $message);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment