From 591a1799c334662c6b769eb89db91bb463e6d44c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ma=C3=AFeul=20Rouquette?= <maieul@maieul.net>
Date: Mon, 19 Dec 2022 21:58:08 +0100
Subject: [PATCH] =?UTF-8?q?doc:=20PHPdoc=20au=20bon=20endroit=20+=20indiqu?=
 =?UTF-8?q?er=20une=20fonction=20depreci=C3=A9e?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 public/formidable_criteres.php | 18 +++++++++++-------
 1 file changed, 11 insertions(+), 7 deletions(-)

diff --git a/public/formidable_criteres.php b/public/formidable_criteres.php
index 17543448..2b011711 100644
--- a/public/formidable_criteres.php
+++ b/public/formidable_criteres.php
@@ -5,10 +5,19 @@ if (!defined('_ECRIRE_INC_VERSION')) {
 }
 
 	// {tri_donnee champ}
+
+/**
+ * @deprecated
+ * @see critere_tri_selon_reponse_dist
+**/
+function critere_tri_selon_donnee_dist($idb, &$boucles, $crit) {
+	critere_tri_selon_reponse_dist($idb, $boucles, $crit) ;
+}
+
 /**
  * Depuis la boucle FORMULAIRES_REPONSES, trier les résulats en fonction d'un champ
  * de la table FORMULAIRES_REPONSES_CHAMPS
- * {tri_selon_donnee}
+ * {tri_selon_reponse}
  *
  * @global array $exceptions_des_tables
  * @param string $idb
@@ -20,12 +29,7 @@ if (!defined('_ECRIRE_INC_VERSION')) {
  * Cedric Morin
  * Renato
  * @ 2005,2006 - Distribue sous licence GNU/GPL
- */
-
-function critere_tri_selon_donnee_dist($idb, &$boucles, $crit) {
-	// Garder cette fontion pour compatibilité
-	critere_tri_selon_reponse_dist($idb, $boucles, $crit) ;
-}
+**/
 function critere_tri_selon_reponse_dist($idb, &$boucles, $crit) {
 
 	$boucle = &$boucles[$idb];
-- 
GitLab