Code Duplication    Length = 6-6 lines in 2 locations

ecrire/inc/filtres_dates.php 2 locations

@@ 1076-1081 (lines=6) @@
1073
				$date_debut = affdate_jourcourt($d, date("Y", $date_fin));
1074
			}
1075
			$date_fin = $affdate($f);
1076
			if ($jour) {
1077
				$nomjour_debut = nom_jour($d, $abbr);
1078
				$date_debut = _T('date_fmt_jour', array('nomjour' => $nomjour_debut, 'jour' => $date_debut));
1079
				$nomjour_fin = nom_jour($f, $abbr);
1080
				$date_fin = _T('date_fmt_jour', array('nomjour' => $nomjour_fin, 'jour' => $date_fin));
1081
			}
1082
			if ($h) {
1083
				$date_debut = _T('date_fmt_jour_heure', array('jour' => $date_debut, 'heure' => $hd));
1084
				$date_fin = _T('date_fmt_jour_heure', array('jour' => $date_fin, 'heure' => $hf));
@@ 1093-1098 (lines=6) @@
1090
		} else {
1091
			$date_debut = affdate_jourcourt($d, date("Y", $date_fin));
1092
			$date_fin = $affdate($f);
1093
			if ($jour) {
1094
				$nomjour_debut = nom_jour($d, $abbr);
1095
				$date_debut = _T('date_fmt_jour', array('nomjour' => $nomjour_debut, 'jour' => $date_debut));
1096
				$nomjour_fin = nom_jour($f, $abbr);
1097
				$date_fin = _T('date_fmt_jour', array('nomjour' => $nomjour_fin, 'jour' => $date_fin));
1098
			}
1099
			if ($h) {
1100
				$date_debut = _T('date_fmt_jour_heure', array('jour' => $date_debut, 'heure' => $hd));
1101
				$date_fin = _T('date_fmt_jour_heure', array('jour' => $date_fin, 'heure' => $hf));