Skip to content

Commit

Permalink
ADD Variable date de fin pour les mails
Browse files Browse the repository at this point in the history
  • Loading branch information
JeromeDevome committed May 24, 2024
1 parent f7dee61 commit 48f2ba5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions include/functions.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -3057,9 3057,15 @@ function send_mail($id_entry, $action, $dformat, $tab_id_moderes = array(), $old
$jours_cycle = htmlspecialchars($row[17]);
$duration = $row[9];
if ($enable_periods == 'y')
{
list($start_period, $start_date) = period_date_string($row[10]);
list($start_period, $end_date) = period_date_string($row[11]);
}
else
{
$start_date = time_date_string($row[10],$dformat);
$end_date = time_date_string($row[11],$dformat);
}
$rep_type = 0;

// Recherche du nom de l'ancienne ressource si besoin
Expand Down Expand Up @@ -3143,6 3149,7 @@ function send_mail($id_entry, $action, $dformat, $tab_id_moderes = array(), $old

// Infos sur la réservation
$codes['%resadatedebut%'] = $start_date;
$codes['%resadatefin%'] = $end_date;
$codes['%resaduree%'] = $duration." ".$dur_units;
if (trim($breve_description) != "")
$codes['%resanom%'] = $vocab["namebooker"]." ".$vocab["deux_points"]." ".$breve_description;
Expand Down

0 comments on commit 48f2ba5

Please sign in to comment.