Skip to content
Snippets Groups Projects
Commit 9cc22004 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Use function to notify errors

parent 4078a124
No related branches found
No related tags found
No related merge requests found
......@@ -612,8 +612,9 @@ if ($_GET["action"] == 'create')
print_fiche_titre($langs->trans("NewMailing"));
if ($message) print $message."<br>";
if (preg_match('/class="error"/i',$message)) dol_htmloutput_errors($message);
else dol_htmloutput_mesg($message);
print '<table class="border" width="100%">';
print '<tr><td width="25%" class="fieldrequired">'.$langs->trans("MailTitle").'</td><td><input class="flat" name="titre" size="40" value="'.$_POST['titre'].'"></td></tr>';
print '<tr><td width="25%" class="fieldrequired">'.$langs->trans("MailFrom").'</td><td><input class="flat" name="from" size="40" value="'.$conf->global->MAILING_EMAIL_FROM.'"></td></tr>';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment