fix warnings
This commit is contained in:
parent
7eedcdd115
commit
9ecf353342
@ -6,7 +6,7 @@
|
|||||||
* Copyright (C) 2012 Marcos García <marcosgdf@gmail.com>
|
* Copyright (C) 2012 Marcos García <marcosgdf@gmail.com>
|
||||||
* Copyright (C) 2012-2020 Philippe Grand <philippe.grand@atoo-net.com>
|
* Copyright (C) 2012-2020 Philippe Grand <philippe.grand@atoo-net.com>
|
||||||
* Copyright (C) 2015-2018 Alexandre Spangaro <aspangaro@open-dsi.fr>
|
* Copyright (C) 2015-2018 Alexandre Spangaro <aspangaro@open-dsi.fr>
|
||||||
* Copyright (C) 2018-2021 Frédéric France <frederic.france@netlogic.fr>
|
* Copyright (C) 2018-2022 Frédéric France <frederic.france@netlogic.fr>
|
||||||
* Copyright (C) 2021 Waël Almoman <info@almoman.com>
|
* Copyright (C) 2021 Waël Almoman <info@almoman.com>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
@ -1533,10 +1533,10 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action)) {
|
|||||||
$texttosend = make_substitutions(dol_concatdesc($msg, $adht->getMailOnValid()), $substitutionarray, $outputlangs);
|
$texttosend = make_substitutions(dol_concatdesc($msg, $adht->getMailOnValid()), $substitutionarray, $outputlangs);
|
||||||
|
|
||||||
$tmp = $langs->trans("SendingAnEMailToMember");
|
$tmp = $langs->trans("SendingAnEMailToMember");
|
||||||
$tmp .= '<br>'.$langs->trans("MailFrom").': <b>'.$conf->global->ADHERENT_MAIL_FROM.'</b>, ';
|
$tmp .= '<br>'.$langs->trans("MailFrom").': <b>'.getDolGlobalString('ADHERENT_MAIL_FROM').'</b>, ';
|
||||||
$tmp .= '<br>'.$langs->trans("MailRecipient").': <b>'.$object->email.'</b>';
|
$tmp .= '<br>'.$langs->trans("MailRecipient").': <b>'.$object->email.'</b>';
|
||||||
$helpcontent = '';
|
$helpcontent = '';
|
||||||
$helpcontent .= '<b>'.$langs->trans("MailFrom").'</b>: '.$conf->global->ADHERENT_MAIL_FROM.'<br>'."\n";
|
$helpcontent .= '<b>'.$langs->trans("MailFrom").'</b>: '.getDolGlobalString('ADHERENT_MAIL_FROM').'<br>'."\n";
|
||||||
$helpcontent .= '<b>'.$langs->trans("MailRecipient").'</b>: '.$object->email.'<br>'."\n";
|
$helpcontent .= '<b>'.$langs->trans("MailRecipient").'</b>: '.$object->email.'<br>'."\n";
|
||||||
$helpcontent .= '<b>'.$langs->trans("Subject").'</b>:<br>'."\n";
|
$helpcontent .= '<b>'.$langs->trans("Subject").'</b>:<br>'."\n";
|
||||||
$helpcontent .= $subjecttosend."\n";
|
$helpcontent .= $subjecttosend."\n";
|
||||||
@ -1596,10 +1596,10 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action)) {
|
|||||||
$texttosend = make_substitutions(dol_concatdesc($msg, $adht->getMailOnResiliate()), $substitutionarray, $outputlangs);
|
$texttosend = make_substitutions(dol_concatdesc($msg, $adht->getMailOnResiliate()), $substitutionarray, $outputlangs);
|
||||||
|
|
||||||
$tmp = $langs->trans("SendingAnEMailToMember");
|
$tmp = $langs->trans("SendingAnEMailToMember");
|
||||||
$tmp .= '<br>('.$langs->trans("MailFrom").': <b>'.$conf->global->ADHERENT_MAIL_FROM.'</b>, ';
|
$tmp .= '<br>('.$langs->trans("MailFrom").': <b>'.getDolGlobalString('ADHERENT_MAIL_FROM').'</b>, ';
|
||||||
$tmp .= $langs->trans("MailRecipient").': <b>'.$object->email.'</b>)';
|
$tmp .= $langs->trans("MailRecipient").': <b>'.$object->email.'</b>)';
|
||||||
$helpcontent = '';
|
$helpcontent = '';
|
||||||
$helpcontent .= '<b>'.$langs->trans("MailFrom").'</b>: '.$conf->global->ADHERENT_MAIL_FROM.'<br>'."\n";
|
$helpcontent .= '<b>'.$langs->trans("MailFrom").'</b>: '.getDolGlobalString('ADHERENT_MAIL_FROM').'<br>'."\n";
|
||||||
$helpcontent .= '<b>'.$langs->trans("MailRecipient").'</b>: '.$object->email.'<br>'."\n";
|
$helpcontent .= '<b>'.$langs->trans("MailRecipient").'</b>: '.$object->email.'<br>'."\n";
|
||||||
$helpcontent .= '<b>'.$langs->trans("Subject").'</b>:<br>'."\n";
|
$helpcontent .= '<b>'.$langs->trans("Subject").'</b>:<br>'."\n";
|
||||||
$helpcontent .= $subjecttosend."\n";
|
$helpcontent .= $subjecttosend."\n";
|
||||||
@ -1656,10 +1656,10 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action)) {
|
|||||||
$texttosend = make_substitutions(dol_concatdesc($msg, $adht->getMailOnExclude()), $substitutionarray, $outputlangs);
|
$texttosend = make_substitutions(dol_concatdesc($msg, $adht->getMailOnExclude()), $substitutionarray, $outputlangs);
|
||||||
|
|
||||||
$tmp = $langs->trans("SendingAnEMailToMember");
|
$tmp = $langs->trans("SendingAnEMailToMember");
|
||||||
$tmp .= '<br>('.$langs->trans("MailFrom").': <b>'.$conf->global->ADHERENT_MAIL_FROM.'</b>, ';
|
$tmp .= '<br>('.$langs->trans("MailFrom").': <b>'.getDolGlobalString('ADHERENT_MAIL_FROM').'</b>, ';
|
||||||
$tmp .= $langs->trans("MailRecipient").': <b>'.$object->email.'</b>)';
|
$tmp .= $langs->trans("MailRecipient").': <b>'.$object->email.'</b>)';
|
||||||
$helpcontent = '';
|
$helpcontent = '';
|
||||||
$helpcontent .= '<b>'.$langs->trans("MailFrom").'</b>: '.$conf->global->ADHERENT_MAIL_FROM.'<br>'."\n";
|
$helpcontent .= '<b>'.$langs->trans("MailFrom").'</b>: '.getDolGlobalString('ADHERENT_MAIL_FROM').'<br>'."\n";
|
||||||
$helpcontent .= '<b>'.$langs->trans("MailRecipient").'</b>: '.$object->email.'<br>'."\n";
|
$helpcontent .= '<b>'.$langs->trans("MailRecipient").'</b>: '.$object->email.'<br>'."\n";
|
||||||
$helpcontent .= '<b>'.$langs->trans("Subject").'</b>:<br>'."\n";
|
$helpcontent .= '<b>'.$langs->trans("Subject").'</b>:<br>'."\n";
|
||||||
$helpcontent .= $subjecttosend."\n";
|
$helpcontent .= $subjecttosend."\n";
|
||||||
|
|||||||
@ -425,8 +425,8 @@ class Adherent extends CommonObject
|
|||||||
|
|
||||||
// Envoi mail confirmation
|
// Envoi mail confirmation
|
||||||
$from = $conf->email_from;
|
$from = $conf->email_from;
|
||||||
if (!empty($conf->global->ADHERENT_MAIL_FROM)) {
|
if (!empty(getDolGlobalString('ADHERENT_MAIL_FROM'))) {
|
||||||
$from = $conf->global->ADHERENT_MAIL_FROM;
|
$from = getDolGlobalString('ADHERENT_MAIL_FROM');
|
||||||
}
|
}
|
||||||
|
|
||||||
$trackid = 'mem'.$this->id;
|
$trackid = 'mem'.$this->id;
|
||||||
@ -3015,7 +3015,7 @@ class Adherent extends CommonObject
|
|||||||
|
|
||||||
$subject = make_substitutions($arraydefaultmessage->topic, $substitutionarray, $outputlangs);
|
$subject = make_substitutions($arraydefaultmessage->topic, $substitutionarray, $outputlangs);
|
||||||
$msg = make_substitutions($arraydefaultmessage->content, $substitutionarray, $outputlangs);
|
$msg = make_substitutions($arraydefaultmessage->content, $substitutionarray, $outputlangs);
|
||||||
$from = $conf->global->ADHERENT_MAIL_FROM;
|
$from = getDolGlobalString('ADHERENT_MAIL_FROM');
|
||||||
$to = $adherent->email;
|
$to = $adherent->email;
|
||||||
|
|
||||||
$trackid = 'mem'.$adherent->id;
|
$trackid = 'mem'.$adherent->id;
|
||||||
|
|||||||
@ -1142,7 +1142,7 @@ if ($rowid > 0) {
|
|||||||
|
|
||||||
$tmp = '<input name="sendmail" type="checkbox"'.(GETPOST('sendmail', 'alpha') ? ' checked' : (!empty($conf->global->ADHERENT_DEFAULT_SENDINFOBYMAIL) ? ' checked' : '')).'>';
|
$tmp = '<input name="sendmail" type="checkbox"'.(GETPOST('sendmail', 'alpha') ? ' checked' : (!empty($conf->global->ADHERENT_DEFAULT_SENDINFOBYMAIL) ? ' checked' : '')).'>';
|
||||||
$helpcontent = '';
|
$helpcontent = '';
|
||||||
$helpcontent .= '<b>'.$langs->trans("MailFrom").'</b>: '.$conf->global->ADHERENT_MAIL_FROM.'<br>'."\n";
|
$helpcontent .= '<b>'.$langs->trans("MailFrom").'</b>: '.getDolGlobalString('ADHERENT_MAIL_FROM').'<br>'."\n";
|
||||||
$helpcontent .= '<b>'.$langs->trans("MailRecipient").'</b>: '.$object->email.'<br>'."\n";
|
$helpcontent .= '<b>'.$langs->trans("MailRecipient").'</b>: '.$object->email.'<br>'."\n";
|
||||||
$helpcontent .= '<b>'.$langs->trans("MailTopic").'</b>:<br>'."\n";
|
$helpcontent .= '<b>'.$langs->trans("MailTopic").'</b>:<br>'."\n";
|
||||||
if ($subjecttosend) {
|
if ($subjecttosend) {
|
||||||
|
|||||||
@ -404,7 +404,7 @@ if (empty($reshook) && $action == 'add') {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$to = $adh->makeSubstitution($conf->global->MAIN_INFO_SOCIETE_MAIL);
|
$to = $adh->makeSubstitution($conf->global->MAIN_INFO_SOCIETE_MAIL);
|
||||||
$from = $conf->global->ADHERENT_MAIL_FROM;
|
$from = getDolGlobalString('ADHERENT_MAIL_FROM');
|
||||||
$mailfile = new CMailFile(
|
$mailfile = new CMailFile(
|
||||||
'['.$appli.'] '.$conf->global->ADHERENT_AUTOREGISTER_NOTIF_MAIL_SUBJECT,
|
'['.$appli.'] '.$conf->global->ADHERENT_AUTOREGISTER_NOTIF_MAIL_SUBJECT,
|
||||||
$to,
|
$to,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user