Fix: The \n in lang templates were not correctly interpreted in email forms.

This commit is contained in:
Laurent Destailleur
2009-11-04 20:16:11 +00:00
parent 71ff7550fd
commit 6f6c6426f7
5 changed files with 8 additions and 2 deletions

View File

@@ -444,6 +444,7 @@ class FormMail
$defaultmessage=make_substitutions($defaultmessage,$this->substit,$langs);
if (isset($_POST["message"])) $defaultmessage=$_POST["message"];
$defaultmessage=str_replace('\n',"\n",$defaultmessage);
print "<tr>";
print "<td width=\"180\" valign=\"top\">".$langs->trans("MailText")."</td>";