Skip to content
Extraits de code Groupes Projets
Valider 61fd59d7 rédigé par esj's avatar esj
Parcourir les fichiers

API du compilateur plus rationnelle --- mais n'élimine pas completement les risque de bug...

parent ec6f6739
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -24,7 +24,7 @@ function index_pile($idb, $nom_champ, &$boucles, $explicite='') { ...@@ -24,7 +24,7 @@ function index_pile($idb, $nom_champ, &$boucles, $explicite='') {
if ($explicite !== false) { if ($explicite !== false) {
// Recherche d'un champ dans un etage superieur // Recherche d'un champ dans un etage superieur
while (($idb != $explicite) && ($idb !='')) { while (($idb != $explicite) && ($idb !='')) {
spip_log("Cherchexpl: $nom_champ '$idb' '$i'"); # spip_log("Cherchexpl: $nom_champ '$idb' '$i'");
$i++; $i++;
$idb = $boucles[$idb]->id_parent; $idb = $boucles[$idb]->id_parent;
} }
...@@ -215,7 +215,7 @@ function calculer_argument_precedent($idb, $nom_champ, &$boucles) { ...@@ -215,7 +215,7 @@ function calculer_argument_precedent($idb, $nom_champ, &$boucles) {
if ($boucles[$idb]->externe) if ($boucles[$idb]->externe)
index_pile ($idb, $nom_champ, $boucles); // reserver chez soi-meme index_pile ($idb, $nom_champ, $boucles); // reserver chez soi-meme
// reserver chez le parent et renvoyer l'habituel $Pile[$SP]['nom_champ'] // reserver chez le parent et renvoyer l'habituel $Pile[$SP]['nom_champ']
spip_log("boucles[$idb]->id_parent " . $boucles[$idb]->id_parent); # spip_log("boucles[$idb]->id_parent " . $boucles[$idb]->id_parent);
return index_pile ($boucles[$idb]->id_parent, $nom_champ, $boucles); return index_pile ($boucles[$idb]->id_parent, $nom_champ, $boucles);
} }
......
...@@ -364,7 +364,7 @@ function calculer_critere_DEFAUT($idb, &$boucles, $param, $not) { ...@@ -364,7 +364,7 @@ function calculer_critere_DEFAUT($idb, &$boucles, $param, $not) {
} }
// Traitement general des relations externes // Traitement general des relations externes
if ($s = $relations_externes[$type][$col]) { if ($s = $tables_relations[$type][$col]) {
$col_table = $s; $col_table = $s;
$boucle->from[] = "$col_table AS $col_table"; $boucle->from[] = "$col_table AS $col_table";
$boucle->where[] = "$id_field=$col_table." . $primary; $boucle->where[] = "$id_field=$col_table." . $primary;
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter