Marius Cramer
2014-04-25 237f35f59f58ee9120e090592ae99f2fc0af36bc
Fixed: FS#3462 - Placeholder {salutation} is not replaced in welcome emails
1 files modified
4 ■■■■ changed files
interface/web/client/client_edit.php 4 ●●●● patch | view | raw | blame | history
interface/web/client/client_edit.php
@@ -352,8 +352,8 @@
                    $subject = str_replace('{password}', $this->dataRecord['password'], $subject);
                    break;
                case 'gender':
                    $message = str_replace('{salutation}', $wb['gender_'.$val.'_txt'], $message);
                    $subject = str_replace('{salutation}', $wb['gender_'.$val.'_txt'], $subject);
                    $message = str_replace('{salutation}', $app->tform->lng('gender_'.$val.'_txt'), $message);
                    $subject = str_replace('{salutation}', $app->tform->lng('gender_'.$val.'_txt'), $subject);
                    break;
                default:
                    $message = str_replace('{'.$key.'}', $val, $message);