Fix title of emails sents on payment
This commit is contained in:
parent
8d82307956
commit
2101611bd5
@ -135,6 +135,10 @@ foreach ($_POST as $k => $v) {
|
|||||||
dol_syslog("POST=".$tracepost, LOG_DEBUG, 0, '_payment');
|
dol_syslog("POST=".$tracepost, LOG_DEBUG, 0, '_payment');
|
||||||
|
|
||||||
|
|
||||||
|
// Set $appli for emails title
|
||||||
|
$appli = $mysoc->name;
|
||||||
|
|
||||||
|
|
||||||
if (!empty($_SESSION['ipaddress'])) { // To avoid to make action twice
|
if (!empty($_SESSION['ipaddress'])) { // To avoid to make action twice
|
||||||
// Get on url call
|
// Get on url call
|
||||||
$fulltag = $FULLTAG;
|
$fulltag = $FULLTAG;
|
||||||
@ -172,21 +176,6 @@ if (!empty($_SESSION['ipaddress'])) { // To avoid to make action twice
|
|||||||
$from = $conf->global->MAILING_EMAIL_FROM;
|
$from = $conf->global->MAILING_EMAIL_FROM;
|
||||||
$sendto = $sendemail;
|
$sendto = $sendemail;
|
||||||
|
|
||||||
// Define link to login card
|
|
||||||
$appli = constant('DOL_APPLICATION_TITLE');
|
|
||||||
if (!empty($conf->global->MAIN_APPLICATION_TITLE)) {
|
|
||||||
$appli = $conf->global->MAIN_APPLICATION_TITLE;
|
|
||||||
if (preg_match('/\d\.\d/', $appli)) {
|
|
||||||
if (!preg_match('/'.preg_quote(DOL_VERSION).'/', $appli)) {
|
|
||||||
$appli .= " (".DOL_VERSION.")"; // If new title contains a version that is different than core
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
$appli .= " ".DOL_VERSION;
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
$appli .= " ".DOL_VERSION;
|
|
||||||
}
|
|
||||||
|
|
||||||
$urlback = $_SERVER["REQUEST_URI"];
|
$urlback = $_SERVER["REQUEST_URI"];
|
||||||
$topic = '['.$appli.'] '.$companylangs->transnoentitiesnoconv("NewOnlinePaymentFailed");
|
$topic = '['.$appli.'] '.$companylangs->transnoentitiesnoconv("NewOnlinePaymentFailed");
|
||||||
$content = "";
|
$content = "";
|
||||||
|
|||||||
@ -1542,10 +1542,7 @@ if ($ispaymentok) {
|
|||||||
|
|
||||||
|
|
||||||
// Set $appli for emails title
|
// Set $appli for emails title
|
||||||
$appli = constant('DOL_APPLICATION_TITLE');
|
$appli = $mysoc->name;
|
||||||
if (!empty($conf->global->MAIN_APPLICATION_TITLE)) {
|
|
||||||
$appli = $conf->global->MAIN_APPLICATION_TITLE;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
if ($ispaymentok) {
|
if ($ispaymentok) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user