Code Duplication    Length = 6-6 lines in 2 locations

ecrire/inc/filtres_dates.php 2 locations

@@ 1094-1099 (lines=6) @@
1091
				$date_debut = affdate_jourcourt($d, date("Y", $date_fin));
1092
			}
1093
			$date_fin = $affdate($f);
1094
			if ($jour) {
1095
				$nomjour_debut = nom_jour($d, $abbr);
1096
				$date_debut = _T('date_fmt_jour', array('nomjour' => $nomjour_debut, 'jour' => $date_debut));
1097
				$nomjour_fin = nom_jour($f, $abbr);
1098
				$date_fin = _T('date_fmt_jour', array('nomjour' => $nomjour_fin, 'jour' => $date_fin));
1099
			}
1100
			if ($h) {
1101
				$date_debut = _T('date_fmt_jour_heure', array('jour' => $date_debut, 'heure' => $hd));
1102
				$date_fin = _T('date_fmt_jour_heure', array('jour' => $date_fin, 'heure' => $hf));
@@ 1111-1116 (lines=6) @@
1108
		} else {
1109
			$date_debut = affdate_jourcourt($d, date("Y", $date_fin));
1110
			$date_fin = $affdate($f);
1111
			if ($jour) {
1112
				$nomjour_debut = nom_jour($d, $abbr);
1113
				$date_debut = _T('date_fmt_jour', array('nomjour' => $nomjour_debut, 'jour' => $date_debut));
1114
				$nomjour_fin = nom_jour($f, $abbr);
1115
				$date_fin = _T('date_fmt_jour', array('nomjour' => $nomjour_fin, 'jour' => $date_fin));
1116
			}
1117
			if ($h) {
1118
				$date_debut = _T('date_fmt_jour_heure', array('jour' => $date_debut, 'heure' => $hd));
1119
				$date_fin = _T('date_fmt_jour_heure', array('jour' => $date_fin, 'heure' => $hf));